Class SCMPEchoCall

java.lang.Object
org.serviceconnector.call.SCMPCallAdapter
org.serviceconnector.call.SCMPEchoCall
All Implemented Interfaces:
ISCMPCall

public class SCMPEchoCall extends SCMPCallAdapter
The Class SCMPEchoCall. Call sends an echo.
Author:
JTraber
  • Constructor Details

    • SCMPEchoCall

      public SCMPEchoCall(IRequester req, String serviceName, String sessionId)
      Instantiates a new SCMPEchoCall.
      Parameters:
      req - the requester to use when invoking call
      serviceName - the service name
      sessionId - the session id
    • SCMPEchoCall

      public SCMPEchoCall(Requester requester, SCMPMessage msgToSend)
      Instantiates a new sCMP echo call.
      Parameters:
      requester - the requester
      msgToSend - the msg to send
  • Method Details

    • invoke

      public void invoke(ISCMPMessageCallback scmpCallback, int timeoutMillis) throws Exception
      Invoke asynchronous.
      Specified by:
      invoke in interface ISCMPCall
      Overrides:
      invoke in class SCMPCallAdapter
      Parameters:
      scmpCallback - the callback
      timeoutMillis - the timeout in milliseconds
      Throws:
      Exception - the exception
    • getMessageType

      public SCMPMsgType getMessageType()
      Gets the message type.
      Returns:
      the message type