|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChannelMessage
Message that is passed through the interceptor stack after the data serialized in the Channel object and then passed down to the interceptor and eventually down to the ChannelSender component
Method Summary | |
---|---|
Object |
clone()
Shallow clone, what gets cloned depends on the implementation |
Object |
deepclone()
Deep clone, all fields MUST get cloned |
Member |
getAddress()
Get the address that this message originated from. |
XByteBuffer |
getMessage()
returns the byte buffer that contains the actual message payload |
int |
getOptions()
The message options is a 32 bit flag set that triggers interceptors and message behavior. |
long |
getTimestamp()
Timestamp of when the message was created. |
byte[] |
getUniqueId()
Each message must have a globally unique Id. |
void |
setAddress(Member member)
Sets the source or reply-to address of this message |
void |
setMessage(XByteBuffer buf)
The byte buffer that contains the actual message payload |
void |
setOptions(int options)
sets the option bits for this message |
void |
setTimestamp(long timestamp)
Sets the timestamp of this message |
Method Detail |
---|
Member getAddress()
Channel.getLocalMember(boolean)
void setAddress(Member member)
member
- Memberlong getTimestamp()
void setTimestamp(long timestamp)
timestamp
- The timestampbyte[] getUniqueId()
void setMessage(XByteBuffer buf)
buf
- XByteBufferXByteBuffer getMessage()
int getOptions()
Channel.send(Member[], Serializable, int)
,
ChannelInterceptor.getOptionFlag()
void setOptions(int options)
options
- intgetOptions()
Object clone()
Object deepclone()
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |