|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a message transmitted or received from the peer network Subclasses must provide translation from PBABI standard message to a native message for a particular peer framework.
Field Summary | |
static long |
NO_ID
|
Method Summary | |
void |
fromPeerMessage(PeerMessage message)
Populate this message with the client side message parameter |
byte[] |
getContent()
Gets the content for the message |
PBApplication |
getDestApp()
Gets the destination app for this message |
long |
getMessageId()
Returns the message ID |
long |
getResponseId()
Returns the response ID |
PBApplication |
getSourceApp()
Gets the source app for this message |
boolean |
isAckRequired()
Return whether or not this message requires an acknowledgement. |
boolean |
isAsynchronous()
Return whether or not this message is a request that is being sent asynchronously. |
boolean |
isResponseExpected()
Check whether an answer is expected to this message. |
void |
setAckRequired(boolean newValue)
Set whether or not this message requires an acknowledgement. |
void |
setAsynchronous(boolean newValue)
Set whether or not this message is a request that is being sent asynchronously. |
void |
setContent(byte[] content)
Sets the content for the message |
void |
setDestApp(PBApplication app)
Sets the destination app for this message |
void |
setResponseExpected(boolean newValue)
Set whether or not an answer is expected to this message. |
void |
setResponseId(long newValue)
Set the response id for this message. |
void |
setSourceApp(PBApplication app)
Sets the source app for this message |
PeerMessage |
toPeerMessage()
Construct a client side message object with the contents of this message. |
Field Detail |
public static final long NO_ID
Method Detail |
public void setAckRequired(boolean newValue)
newValue
- The new AckRequired valuepublic boolean isAckRequired()
public void setAsynchronous(boolean newValue)
newValue
- The new asynchronous flagpublic boolean isAsynchronous()
public void setResponseExpected(boolean newValue)
newValue
- The new ResponseExpected valuepublic boolean isResponseExpected()
public long getMessageId()
public long getResponseId()
public void setResponseId(long newValue)
public byte[] getContent()
public void setContent(byte[] content)
content
- The new Content valuepublic void fromPeerMessage(PeerMessage message)
message
- application provided messagepublic PeerMessage toPeerMessage()
public PBApplication getDestApp()
public void setDestApp(PBApplication app)
app
- the destination apppublic PBApplication getSourceApp()
public void setSourceApp(PBApplication app)
app
- the app that emitted this message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |