| |
|
| org.apache.catalina.tribes.ChannelMessage
All known Subclasses: org.apache.catalina.tribes.io.ChannelData,
ChannelMessage | public interface ChannelMessage extends Serializable(Code) | | 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
author: Filip Hanik |
clone | public Object clone()(Code) | | Shallow clone, what gets cloned depends on the implementation
ChannelMessage |
deepclone | public Object deepclone()(Code) | | Deep clone, all fields MUST get cloned
ChannelMessage |
getAddress | public Member getAddress()(Code) | | Get the address that this message originated from.
Almost always Channel.getLocalMember(boolean)
This would be set to a different address
if the message was being relayed from a host other than the one
that originally sent it.
the source or reply-to address of this message |
getMessage | public XByteBuffer getMessage()(Code) | | returns the byte buffer that contains the actual message payload
XByteBuffer |
getTimestamp | public long getTimestamp()(Code) | | Timestamp of when the message was created.
long timestamp in milliseconds |
getUniqueId | public byte[] getUniqueId()(Code) | | Each message must have a globally unique Id.
interceptors heavily depend on this id for message processing
byte |
setAddress | public void setAddress(Member member)(Code) | | Sets the source or reply-to address of this message
Parameters: member - Member |
setMessage | public void setMessage(XByteBuffer buf)(Code) | | The byte buffer that contains the actual message payload
Parameters: buf - XByteBuffer |
setTimestamp | public void setTimestamp(long timestamp)(Code) | | Sets the timestamp of this message
Parameters: timestamp - The timestamp |
|
|
|