Class SCMPClnCreateSessionCall

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

public class SCMPClnCreateSessionCall extends SCMPCallAdapter
The Class SCMPClnCreateSessionCall. Call tries creating a session to a backend server over a SC.
Author:
JTraber
  • Constructor Details

    • SCMPClnCreateSessionCall

      public SCMPClnCreateSessionCall(IRequester requester, String serviceName)
      Instantiates a new SCMPClnCreateSessionCall.
      Parameters:
      requester - the requester to use when invoking call
      serviceName - the service name
  • 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
    • setSessionInfo

      public void setSessionInfo(String sessionInfo)
      Sets the session info.
      Parameters:
      sessionInfo - the new session info
    • setEchoIntervalSeconds

      public void setEchoIntervalSeconds(int echoInterval)
      Sets the echo interval seconds.
      Parameters:
      echoInterval - the new echo interval seconds
    • setCompressed

      public void setCompressed(boolean compressed)
      Sets the compression.
      Parameters:
      compressed - the compression
    • setRequestBody

      public void setRequestBody(Object obj)
      Sets the body.
      Specified by:
      setRequestBody in interface ISCMPCall
      Overrides:
      setRequestBody in class SCMPCallAdapter
      Parameters:
      obj - the new body
    • getMessageType

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