org.jlab.coda.cMsg
Class cMsgMessageContextDefault

java.lang.Object
  extended by org.jlab.coda.cMsg.cMsgMessageContextDefault
All Implemented Interfaces:
cMsgMessageContextInterface

public class cMsgMessageContextDefault
extends java.lang.Object
implements cMsgMessageContextInterface

The class defines the default context that a message starts with when it's created.


Constructor Summary
cMsgMessageContextDefault()
           
cMsgMessageContextDefault(boolean reliableSend)
           
 
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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

cMsgMessageContextDefault

public cMsgMessageContextDefault()

cMsgMessageContextDefault

public cMsgMessageContextDefault(boolean reliableSend)
Method Detail

getDomain

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

Specified by:
getDomain in interface cMsgMessageContextInterface
Returns:
domain this callback is running in.

getSubject

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

Specified by:
getSubject in interface cMsgMessageContextInterface
Returns:
subject of this callback's subscription.

getType

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

Specified by:
getType in interface cMsgMessageContextInterface
Returns:
type of this callback's subscription.

getCueSize

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

Specified by:
getCueSize in interface cMsgMessageContextInterface
Returns:
value of this callback's cue size, -1 if no info available

setReliableSend

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

Specified by:
setReliableSend in interface cMsgMessageContextInterface
Parameters:
b - false if using UDP, or true if using TCP

getReliableSend

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

Specified by:
getReliableSend in interface cMsgMessageContextInterface
Returns:
value true if using TCP, else false