public class cMsgCallbackAdapter extends java.lang.Object implements cMsgCallbackInterface
| Constructor and Description |
|---|
cMsgCallbackAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
callback(cMsgMessage msg,
java.lang.Object userObject)
Callback method definition.
|
int |
getMaximumQueueSize()
Method to get the maximum number of messages to queue for the callback.
|
int |
getMaximumThreads()
Method to get the maximum number of worker threads to use for running
the callback if "mustSerializeMessages" returns false.
|
int |
getMessagesPerThread()
Method to get the maximum number of unprocessed messages per worker thread
before starting another worker thread (until the maximum # of threads is reached).
|
int |
getSkipSize()
Method to get the maximum number of messages to skip over (delete) from
the cue for the callback when the cue size has reached it limit.
|
boolean |
maySkipMessages()
Method telling whether messages may be skipped or not.
|
boolean |
mustSerializeMessages()
Method telling whether messages must serialized -- processed in the order
received.
|
public void callback(cMsgMessage msg, java.lang.Object userObject)
callback in interface cMsgCallbackInterfacemsg - message received from domain serveruserObject - object passed as an argument which was set when the
client originally subscribed to a subject and type of
message.public boolean maySkipMessages()
maySkipMessages in interface cMsgCallbackInterfacepublic boolean mustSerializeMessages()
mustSerializeMessages in interface cMsgCallbackInterfacepublic int getMaximumQueueSize()
getMaximumQueueSize in interface cMsgCallbackInterfacepublic int getSkipSize()
getSkipSize in interface cMsgCallbackInterfacepublic int getMaximumThreads()
getMaximumThreads in interface cMsgCallbackInterfacepublic int getMessagesPerThread()
getMessagesPerThread in interface cMsgCallbackInterface