Package org.serviceconnector.call

Examples of org.serviceconnector.call.SCMPCscUnsubscribeCall.invoke()


        // cascaded client can unsubscribe himself
        SCMPCscUnsubscribeCall cscUnsubscribeCall = new SCMPCscUnsubscribeCall(this.requester, msgToForward);
        // set cascaded client subscriptonId
        msgToForward.setHeader(SCMPHeaderAttributeKey.CASCADED_SUBSCRIPTION_ID, cascClient.getSubscriptionId());
        try {
          cscUnsubscribeCall.invoke(callback, oti);
        } finally {
          cascClient.setSubscribed(false);
          cascClient.destroy();
        }
        return;
View Full Code Here


      message.setHeader(SCMPHeaderAttributeKey.CASCADED_SUBSCRIPTION_ID, cascClient.getSubscriptionId());
      message.setServiceName(cascClient.getServiceName());
      long msgSeqNr = cascClient.getMsgSequenceNr().incrementAndGetMsgSequenceNr();
      message.setHeader(SCMPHeaderAttributeKey.MESSAGE_SEQUENCE_NR, msgSeqNr);
      SCMPCscUnsubscribeCall unsubscribeCall = new SCMPCscUnsubscribeCall(this.requester, message);
      unsubscribeCall.invoke(new CommandCallback(false), AppContext.getBasicConfiguration().getSrvAbortOTIMillis());
    } catch (Exception e) {
      LOGGER.warn("unsubscribing cascaded client failed service=" + cascClient.getServiceName() + " " + e.toString());
    }
  }
View Full Code Here

    // set cascaded subscriptonId
    msgToForward.setHeader(SCMPHeaderAttributeKey.CASCADED_SUBSCRIPTION_ID, cascClient.getSubscriptionId());
    String cascadedMask = cascClient.evalSubscriptionMaskFromClientSubscriptions();
    msgToForward.setHeader(SCMPHeaderAttributeKey.CASCADED_MASK, cascadedMask);
    SCMPCscUnsubscribeCall cscUnsubscribeCall = new SCMPCscUnsubscribeCall(this.requester, msgToForward);
    cscUnsubscribeCall.invoke(callback, oti);
  }

  /**
   * Abort session.
   *
 
View Full Code Here

        // cascaded client can unsubscribe himself
        SCMPCscUnsubscribeCall cscUnsubscribeCall = new SCMPCscUnsubscribeCall(this.requester, msgToForward);
        // set cascaded client subscriptonId
        msgToForward.setHeader(SCMPHeaderAttributeKey.CASCADED_SUBSCRIPTION_ID, cascClient.getSubscriptionId());
        try {
          cscUnsubscribeCall.invoke(callback, oti);
        } finally {
          cascClient.setSubscribed(false);
          cascClient.destroy();
        }
        return;
View Full Code Here

      message.setHeader(SCMPHeaderAttributeKey.CASCADED_SUBSCRIPTION_ID, cascClient.getSubscriptionId());
      message.setServiceName(cascClient.getServiceName());
      long msgSeqNr = cascClient.getMsgSequenceNr().incrementAndGetMsgSequenceNr();
      message.setHeader(SCMPHeaderAttributeKey.MESSAGE_SEQUENCE_NR, msgSeqNr);
      SCMPCscUnsubscribeCall unsubscribeCall = new SCMPCscUnsubscribeCall(this.requester, message);
      unsubscribeCall.invoke(new CommandCallback(false), AppContext.getBasicConfiguration().getSrvAbortOTIMillis());
    } catch (Exception e) {
      LOGGER.warn("unsubscribing cascaded client failed service=" + cascClient.getServiceName() + " " + e.toString());
    }
  }
View Full Code Here

    // set cascaded subscriptonId
    msgToForward.setHeader(SCMPHeaderAttributeKey.CASCADED_SUBSCRIPTION_ID, cascClient.getSubscriptionId());
    String cascadedMask = cascClient.evalSubscriptionMaskFromClientSubscriptions();
    msgToForward.setHeader(SCMPHeaderAttributeKey.CASCADED_MASK, cascadedMask);
    SCMPCscUnsubscribeCall cscUnsubscribeCall = new SCMPCscUnsubscribeCall(this.requester, msgToForward);
    cscUnsubscribeCall.invoke(callback, oti);
  }

  /**
   * Abort session.
   *
 
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.