Package org.serviceconnector.call

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


    SCMPClnUnsubscribeCall unSubscribeCall = new SCMPClnUnsubscribeCall(this.requester, TestConstants.pubServerName1,
        sessionId1);
    unSubscribeCall.invoke(new TestCallback(false), 3000);
    unSubscribeCall = new SCMPClnUnsubscribeCall(this.requester, TestConstants.pubServerName1, sessionId2);
    unSubscribeCall.invoke(new TestCallback(false), 3000);
  }
}
View Full Code Here


      SCMPClnUnsubscribeCall unsubscribeCall = new SCMPClnUnsubscribeCall(this.requester, this.serviceName, this.sessionId);
      if (scMessage != null) {
        unsubscribeCall.setSessionInfo(scMessage.getSessionInfo());
      }
      try {
        unsubscribeCall.invoke(callback, operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
      } catch (Exception e) {
        throw new SCServiceException("Unsubscribe failed.", e);
      }
      // 3. receiving reply and error handling
      SCMPMessage reply = callback.getMessageSync(operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
 
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.