org.apache.catalina.tribes
public interface ChannelMessage extends Serializable
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.
interceptors heavily depend on this id for message processing |
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 |
Returns: ChannelMessage
Returns: ChannelMessage
Channel.getLocalMember(boolean)
Returns: the source or reply-to address of this message
Returns: XByteBuffer
Returns: int - the option bits set for this message
Returns: long timestamp in milliseconds
Returns: byte
Parameters: member Member
Parameters: buf XByteBuffer
Parameters: options int
See Also: getOptions
Parameters: timestamp The timestamp