|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jlab.coda.cMsg.cMsgCallbackAdapter
public class cMsgCallbackAdapter
This class is an adapter which implements the cMsgCallbackInterface. It implements the methods so extending this adapter is simpler than implementing the full interface.
Constructor Summary | |
---|---|
cMsgCallbackAdapter()
|
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public cMsgCallbackAdapter()
Method Detail |
---|
public void callback(cMsgMessage msg, java.lang.Object userObject)
callback
in interface cMsgCallbackInterface
msg
- message received from domain serveruserObject
- object passed as an argument which was set when the
client orginally subscribed to a subject and type of
message.public boolean maySkipMessages()
maySkipMessages
in interface cMsgCallbackInterface
public boolean mustSerializeMessages()
mustSerializeMessages
in interface cMsgCallbackInterface
public int getMaximumQueueSize()
getMaximumQueueSize
in interface cMsgCallbackInterface
public int getSkipSize()
getSkipSize
in interface cMsgCallbackInterface
public int getMaximumThreads()
getMaximumThreads
in interface cMsgCallbackInterface
public int getMessagesPerThread()
getMessagesPerThread
in interface cMsgCallbackInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |