Interface ISCMPSynchronousCallback

All Superinterfaces:
ISCMPMessageCallback
All Known Implementing Classes:
CommandCallback, SCServiceCallback, SCSessionServer.SCServerCallback, SynchronousCallback

public interface ISCMPSynchronousCallback extends ISCMPMessageCallback
The Interface ISCMPSynchronousCallback.
  • Method Details

    • receive

      void receive(SCMPMessage scmpReply) throws Exception
      Callback. This method gets informed when a message received.
      Specified by:
      receive in interface ISCMPMessageCallback
      Parameters:
      scmpReply - the scmp reply
      Throws:
      Exception - the exception
    • receive

      void receive(Exception ex)
      Callback. This method gets informed in case of an error.
      Specified by:
      receive in interface ISCMPMessageCallback
      Parameters:
      ex - the ex
    • getMessageSync

      SCMPMessage getMessageSync(int timeoutMillis) throws Exception
      Careful, be aware of timeout concept if you use this method. Gets the message synchronous. Waits until message/fault received or time you hand over runs out.

      Parameters:
      timeoutMillis - the timeout in milliseconds
      Returns:
      the message sync
      Throws:
      Exception - the exception