public interface cMsgSubscriptionHandle
cMsg.subscribe(java.lang.String, java.lang.String, org.jlab.coda.cMsg.cMsgCallbackInterface, java.lang.Object)
.
The returned object may be used to query and control the subscription to some degree.Modifier and Type | Method and Description |
---|---|
void |
clearQueue()
Clears the queue of all messages.
|
cMsgCallbackInterface |
getCallback()
Gets the callback object.
|
java.lang.String |
getDomain()
Gets the domain in which this subscription lives.
|
long |
getMsgCount()
Gets the total number of messages passed to the callback.
|
int |
getQueueSize()
Gets the number of messages in the queue.
|
java.lang.String |
getSubject()
Gets the subject of this subscription.
|
java.lang.String |
getType()
Gets the type of this subscription.
|
java.lang.Object |
getUserObject()
Gets the subscription's user object argument.
|
boolean |
isQueueFull()
Returns true if queue is full.
|
void |
pause()
This method stops any further calling of the callback.
|
void |
restart()
This method resumes any calling of the callback delayed by the
pause() method. |
void pause()
void restart()
pause()
method.int getQueueSize()
boolean isQueueFull()
void clearQueue()
long getMsgCount()
java.lang.String getDomain()
java.lang.String getSubject()
java.lang.String getType()
cMsgCallbackInterface getCallback()
java.lang.Object getUserObject()