this.sessionActive = false;
this.requester.getSCMPMsgSequenceNr().incrementAndGetMsgSequenceNr();
// 2. initialize call & invoke
try {
SCServiceCallback callback = new SCServiceCallback(true);
SCMPClnUnsubscribeCall unsubscribeCall = new SCMPClnUnsubscribeCall(this.requester, this.serviceName, this.sessionId);
if (scSubscribeMessage != null) {
unsubscribeCall.setSessionInfo(scSubscribeMessage.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);