|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.resilientedge.jockey.peerbridge.LoopbackMessage
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.
| Fields inherited from interface org.resilientedge.jockey.peerbridge.PBMessage |
NO_ID |
| Constructor Summary | |
LoopbackMessage()
Construct a new message. |
|
| 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 responseId)
Set response ID. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LoopbackMessage()
| Method Detail |
public void fromPeerMessage(PeerMessage message)
fromPeerMessage in interface PBMessagemessage - application provided messagepublic PeerMessage toPeerMessage()
toPeerMessage in interface PBMessagepublic void setAsynchronous(boolean newValue)
setAsynchronous in interface PBMessagenewValue - The new asynchronous flagpublic boolean isAsynchronous()
isAsynchronous in interface PBMessagepublic void setAckRequired(boolean newValue)
setAckRequired in interface PBMessagenewValue - The new AckRequired valuepublic boolean isAckRequired()
isAckRequired in interface PBMessagepublic void setResponseExpected(boolean newValue)
setResponseExpected in interface PBMessagenewValue - The new ResponseExpected valuepublic boolean isResponseExpected()
isResponseExpected in interface PBMessagepublic long getMessageId()
getMessageId in interface PBMessagepublic long getResponseId()
getResponseId in interface PBMessagepublic void setResponseId(long responseId)
setResponseId in interface PBMessageresponseId - the new response ID valuepublic byte[] getContent()
getContent in interface PBMessagepublic void setContent(byte[] content)
setContent in interface PBMessagecontent - The new Content valuepublic PBApplication getDestApp()
getDestApp in interface PBMessagepublic void setDestApp(PBApplication app)
setDestApp in interface PBMessageapp - the destination apppublic PBApplication getSourceApp()
getSourceApp in interface PBMessagepublic void setSourceApp(PBApplication app)
setSourceApp in interface PBMessageapp - the app that emitted this message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||