Package org.smslib.notify

Examples of org.smslib.notify.OutboundMessageNotification


                }
                else
                {
                  Logger.getInstance().logWarn("Maximum number of queue retries exceeded, message lost.", null, getGatewayId());
                  msg.setFailureCause(FailureCauses.UNKNOWN);
                  Service.getInstance().getNotifyQueueManager().getNotifyQueue().add(new OutboundMessageNotification(getMyself(), msg));
                }
              }
              else
              {
                Service.getInstance().getNotifyQueueManager().getNotifyQueue().add(new OutboundMessageNotification(getMyself(), msg));
              }
            }
            catch (TimeoutException e)
            {
              Service.getInstance().getQueueManager().queueMessage(msg);
              throw e;
            }
          }
        }
      }
      catch (InterruptedException e)
      {
        if ((msg != null) && (msg.getMessageStatus() != MessageStatuses.SENT)) Service.getInstance().getQueueManager().queueMessage(msg);
        Logger.getInstance().logInfo("QueueManager interrupted.", e, getGatewayId());
      }
      catch (Exception e)
      {
        Logger.getInstance().logWarn("Queue exception, marking gateway for reset.", e, getGatewayId());
        setStatus(GatewayStatuses.RESTART);
        Service.getInstance().getNotifyQueueManager().getNotifyQueue().add(new OutboundMessageNotification(getMyself(), msg));
      }
    }
View Full Code Here

TOP

Related Classes of org.smslib.notify.OutboundMessageNotification

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.