Package org.serviceconnector.call

Examples of org.serviceconnector.call.SCMPReceivePublicationCall


    }
    long msgSeqNr = cascClient.getMsgSequenceNr().incrementAndGetMsgSequenceNr();
    req.setHeader(SCMPHeaderAttributeKey.MESSAGE_SEQUENCE_NR, msgSeqNr);
    req.setSessionId(cascClient.getSubscriptionId());
    req.setServiceName(cascClient.getServiceName());
    SCMPReceivePublicationCall receivePublicationCall = new SCMPReceivePublicationCall(this.requester, req);

    try {
      receivePublicationCall.invoke(callback, timeoutMillis);
    } catch (Exception e) {
      // receive publication failed
      callback.receive(e);
      return;
    }
View Full Code Here


      return;
    }
    this.requester.getSCMPMsgSequenceNr().incrementAndGetMsgSequenceNr();
    // 2. initialize call & invoke
    SCPublishServiceCallback callback = new SCPublishServiceCallback(this, this.messageCallback);
    SCMPReceivePublicationCall receivePublicationCall = new SCMPReceivePublicationCall(this.requester, this.serviceName,
        this.sessionId);
    try {
      PerformanceLogger.begin(this.sessionId);
      receivePublicationCall.invoke(callback, Constants.SEC_TO_MILLISEC_FACTOR
          * (this.receivePublicationTimeoutSeconds + this.noDataIntervalSeconds));
    } catch (Exception e) {
      PerformanceLogger.end(this.sessionId);
      // inactivate the session
      this.sessionActive = false;
View Full Code Here

TOP

Related Classes of org.serviceconnector.call.SCMPReceivePublicationCall

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.