|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jlab.coda.cMsg.cMsgGetHelper
public class cMsgGetHelper
This class is used to help in implementing subscribeAndGet and sendAndGet methods. This is true in the cMsg domain for the client and in the RCBroadcast and RCServer domains for servers. An object of this class stores a msg from a sender to the method's caller and is used to synchronize/wait/notify on. It also indicates whether the call timed out or not.
Constructor Summary | |
---|---|
cMsgGetHelper()
Constructor used in sendAndGet. |
|
cMsgGetHelper(java.lang.String subject,
java.lang.String type)
Constructor used in subscribeAndGet. |
Method Summary | |
---|---|
boolean |
areWildCardsInSub()
Returns true if there are * or ? characters in subject. |
boolean |
areWildCardsInType()
Returns true if there are * or ? characters in type. |
int |
getErrorCode()
Gets the error code from when a "subscribeAndGet" or "sendAndGet" is woken up by an error condition. |
cMsgMessageFull |
getMessage()
Returns the message object. |
java.lang.String |
getSubject()
Gets subject subscribed to. |
java.util.regex.Pattern |
getSubjectPattern()
Gets subject turned into compiled regular expression pattern. |
java.lang.String |
getSubjectRegexp()
Gets subject turned into regular expression that understands * and ?. |
java.lang.String |
getType()
Gets type subscribed to. |
java.util.regex.Pattern |
getTypePattern()
Gets type turned into compiled regular expression pattern. |
java.lang.String |
getTypeRegexp()
Gets type turned into regular expression that understands * and ?. |
boolean |
isTimedOut()
Returns true if the "subscribeAndGet" or "sendAndGet" call timed out. |
void |
setErrorCode(int errorCode)
Sets the error code from when a "subscribeAndGet" or "sendAndGet" is woken up by an error condition. |
void |
setMessage(cMsgMessageFull message)
Sets the messge object; |
void |
setTimedOut(boolean timedOut)
Set boolean telling whether he "subscribeAndGet" or "sendAndGet" call timed out or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public cMsgGetHelper()
public cMsgGetHelper(java.lang.String subject, java.lang.String type)
subject
- subject of subscriptiontype
- type of subscriptionMethod Detail |
---|
public cMsgMessageFull getMessage()
public void setMessage(cMsgMessageFull message)
message
- the message objectpublic boolean isTimedOut()
public void setTimedOut(boolean timedOut)
timedOut
- boolean telling whether he "subscribeAndGet" or "sendAndGet" call timed out or not.public int getErrorCode()
public void setErrorCode(int errorCode)
errorCode
- error codepublic boolean areWildCardsInSub()
public boolean areWildCardsInType()
public java.lang.String getSubject()
public java.lang.String getSubjectRegexp()
public java.util.regex.Pattern getSubjectPattern()
public java.lang.String getType()
public java.lang.String getTypeRegexp()
public java.util.regex.Pattern getTypePattern()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |