|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.resilientedge.jockey.peerbridge.SimpSockMessage
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 | |
SimpSockMessage()
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 SimpSockMessage()
Method Detail |
public void fromPeerMessage(PeerMessage message)
fromPeerMessage
in interface PBMessage
message
- application provided messagepublic PeerMessage toPeerMessage()
toPeerMessage
in interface PBMessage
public void setAsynchronous(boolean newValue)
setAsynchronous
in interface PBMessage
newValue
- The new asynchronous flagpublic boolean isAsynchronous()
isAsynchronous
in interface PBMessage
public void setAckRequired(boolean newValue)
setAckRequired
in interface PBMessage
newValue
- The new AckRequired valuepublic boolean isAckRequired()
isAckRequired
in interface PBMessage
public void setResponseExpected(boolean newValue)
setResponseExpected
in interface PBMessage
newValue
- The new ResponseExpected valuepublic boolean isResponseExpected()
isResponseExpected
in interface PBMessage
public long getMessageId()
getMessageId
in interface PBMessage
public long getResponseId()
getResponseId
in interface PBMessage
public void setResponseId(long responseId)
setResponseId
in interface PBMessage
responseId
- the new response ID valuepublic byte[] getContent()
getContent
in interface PBMessage
public void setContent(byte[] content)
setContent
in interface PBMessage
content
- The new Content valuepublic PBApplication getDestApp()
getDestApp
in interface PBMessage
public void setDestApp(PBApplication app)
setDestApp
in interface PBMessage
app
- the destination apppublic PBApplication getSourceApp()
getSourceApp
in interface PBMessage
public void setSourceApp(PBApplication app)
setSourceApp
in interface PBMessage
app
- the app that emitted this message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |