Examples of CommandCallback


Examples of org.serviceconnector.cmd.sc.CommandCallback

          Set<String> subscriptionIds = subscription.getCscSubscriptionIds().keySet();

          for (String id : subscriptionIds) {
            abortMessage.setSessionId(id);
            try {
              this.serverAbortSubscription(abortMessage, new CommandCallback(false), AppContext
                  .getBasicConfiguration().getSrvAbortOTIMillis());
            } catch (ConnectionPoolBusyException e) {
              LOGGER.warn("aborting subscription failed because of busy connection pool. " + e.toString());
            } catch (Exception e) {
              LOGGER.warn("aborting subscription failed. " + e.toString());
            }
          }
          subscription.getCscSubscriptionIds().clear();
          // subscription is of type cascaded - do not forward to server
          continue;
        }
        try {
          this.serverAbortSubscription(abortMessage, new CommandCallback(false), AppContext.getBasicConfiguration()
              .getSrvAbortOTIMillis());
        } catch (ConnectionPoolBusyException e) {
          LOGGER.warn("aborting subscription failed because of busy connection pool. " + e.toString());
        } catch (Exception e) {
          LOGGER.warn("aborting subscription failed. " + e.toString());
        }
      } else {
        SessionLogger.logAbortSession((Session) session, reason);
        try {
          this.serverAbortSession(abortMessage, new CommandCallback(false), AppContext.getBasicConfiguration()
              .getSrvAbortOTIMillis());
        } catch (ConnectionPoolBusyException e) {
          LOGGER.warn("aborting session failed because of busy connection pool. " + e.toString());
        } catch (Exception e) {
          LOGGER.warn("aborting session failed. " + e.toString());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.