class cMsgSendAndGetCallbackThread
extends java.lang.Object
implements java.util.concurrent.Callable<java.lang.Boolean>
Constructor and Description |
---|
cMsgSendAndGetCallbackThread(cMsgCallbackInterface callback,
java.lang.Object arg)
Constructor used to pass an arbitrary argument to callback method.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
call()
This method is executed as a thread which runs the callback method
|
void |
sendMessage(cMsgMessageFull message)
Put message on a cue waiting to be taken by the callback.
|
cMsgSendAndGetCallbackThread(cMsgCallbackInterface callback, java.lang.Object arg)
callback
- callback to be run when message arrivesarg
- user-supplied argument for callbackpublic void sendMessage(cMsgMessageFull message)
message
- message to be passed to callbackpublic java.lang.Boolean call()
call
in interface java.util.concurrent.Callable<java.lang.Boolean>