static class cMsgServerBridge.SendAndGetCallback extends cMsgCallbackAdapter
Modifier and Type | Field and Description |
---|---|
(package private) int |
id
Send messges's senderToken on this server.
|
(package private) java.util.concurrent.atomic.AtomicBoolean |
skip
Allow this callback to skip extra incoming messages since only one is needed.
|
(package private) int |
sysMsgId
Send message's sysMsgId on this server.
|
Constructor and Description |
---|
SendAndGetCallback(int id,
int sysMsgId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
callback(cMsgMessage msg,
java.lang.Object userObject)
Callback which passes on a message to local clients.
|
getMaximumQueueSize, getMaximumThreads, getMessagesPerThread, getSkipSize, maySkipMessages, mustSerializeMessages
int id
int sysMsgId
java.util.concurrent.atomic.AtomicBoolean skip
SendAndGetCallback(int id, int sysMsgId)
id
- incoming message's senderToken needs to be changed to this valuesysMsgId
- incoming message's sysMsgId needs to be changed to this valuepublic void callback(cMsgMessage msg, java.lang.Object userObject)
callback
in interface cMsgCallbackInterface
callback
in class cMsgCallbackAdapter
msg
- message received from domain serveruserObject
- in this case the original msg sender's namespace.