public class cMsgGetHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) int |
errorCode
When a "subscribeAndGet" or "sendAndGet" is woken up by an error condition,
such as "the server died", this code is set.
|
(package private) int |
intVal
Used to store syncSend return value.
|
(package private) cMsgMessageFull |
message
Message object.
|
(package private) java.util.concurrent.atomic.AtomicBoolean |
timedOut
Has the "subscribeAndGet" or "sendAndGet" call timed out?
|
Constructor and Description |
---|
cMsgGetHelper() |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Gets the error code from when a "subscribeAndGet" or "sendAndGet" is woken up by an error condition.
|
int |
getIntVal()
Gets intVal from when a "syncSend" is woken up.
|
cMsgMessageFull |
getMessage()
Returns the message object.
|
boolean |
isTimedOut()
Returns true if the "subscribeAndGet" or "sendAndGet" call timed out.
|
boolean |
needToWait()
Returns true if the "syncSend" response has not yet been received and
the client still needs to wait for it.
|
void |
setErrorCode(int errorCode)
Sets the error code from when a "subscribeAndGet" or "sendAndGet" is woken up by an error condition.
|
void |
setIntVal(int intVal)
Sets intVal from when a "syncSend" is woken up.
|
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.
|
cMsgMessageFull message
java.util.concurrent.atomic.AtomicBoolean timedOut
int errorCode
int intVal
public cMsgMessageFull getMessage()
public void setMessage(cMsgMessageFull message)
message
- the message objectpublic boolean needToWait()
public 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 int getIntVal()
public void setIntVal(int intVal)
intVal
- syncSend response