org.jlab.coda.cMsg
Interface cMsgMessageContextInterface

All Known Implementing Classes:
cMsgMessageContextDefault

public interface cMsgMessageContextInterface

Interface defining the context in which a subscription's callback is run.


Method Summary
 int getCueSize()
          Gets the value of this callback's cue size.
 java.lang.String getDomain()
          Gets the domain this callback is running in.
 boolean getReliableSend()
          Gets whether the send will be reliable (default, TCP) or will be allowed to be unreliable (UDP).
 java.lang.String getSubject()
          Gets the subject of this callback's subscription.
 java.lang.String getType()
          Gets the type of this callback's subscription.
 void setReliableSend(boolean b)
          Sets whether the send will be reliable (default, TCP) or will be allowed to be unreliable (UDP).
 

Method Detail

getDomain

java.lang.String getDomain()
Gets the domain this callback is running in.

Returns:
domain this callback is running in.

getSubject

java.lang.String getSubject()
Gets the subject of this callback's subscription.

Returns:
subject of this callback's subscription.

getType

java.lang.String getType()
Gets the type of this callback's subscription.

Returns:
type of this callback's subscription.

getCueSize

int getCueSize()
Gets the value of this callback's cue size.

Returns:
value of this callback's cue size, -1 if no info available

setReliableSend

void setReliableSend(boolean b)
Sets whether the send will be reliable (default, TCP) or will be allowed to be unreliable (UDP).

Parameters:
b - false if using UDP, or true if using TCP

getReliableSend

boolean getReliableSend()
Gets whether the send will be reliable (default, TCP) or will be allowed to be unreliable (UDP).

Returns:
value true if using TCP, else false