Package org.serviceconnector.scmp
Interface ISCMPSynchronousCallback
- All Superinterfaces:
ISCMPMessageCallback
- All Known Implementing Classes:
CommandCallback,SCServiceCallback,SCSessionServer.SCServerCallback,SynchronousCallback
The Interface ISCMPSynchronousCallback.
-
Method Summary
Modifier and TypeMethodDescriptiongetMessageSync(int timeoutMillis) Careful, be aware of timeout concept if you use this method.voidCallback.voidreceive(SCMPMessage scmpReply) Callback.
-
Method Details
-
receive
Callback. This method gets informed when a message received.- Specified by:
receivein interfaceISCMPMessageCallback- Parameters:
scmpReply- the scmp reply- Throws:
Exception- the exception
-
receive
Callback. This method gets informed in case of an error.- Specified by:
receivein interfaceISCMPMessageCallback- Parameters:
ex- the ex
-
getMessageSync
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
-