Package org.apache.catalina.ha
Interface ClusterMessage
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
SessionMessage
- All Known Implementing Classes:
ClusterMessageBase,FileMessage,SessionMessageImpl,UndeployMessage
public interface ClusterMessage extends java.io.SerializableInterface for messages exchanged between cluster nodes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MembergetAddress()Returns the member associated with this message.longgetTimestamp()Returns the timestamp of this message.java.lang.StringgetUniqueId()Returns the unique identifier for this message.voidsetAddress(Member member)Set the member associated with the message.voidsetTimestamp(long timestamp)Set the timestamp for this message.
-
-
-
Method Detail
-
getAddress
Member getAddress()
Returns the member associated with this message.- Returns:
- the member address
-
setAddress
void setAddress(Member member)
Set the member associated with the message.- Parameters:
member- the member
-
getUniqueId
java.lang.String getUniqueId()
Returns the unique identifier for this message.- Returns:
- the unique ID
-
getTimestamp
long getTimestamp()
Returns the timestamp of this message.- Returns:
- the timestamp in milliseconds
-
setTimestamp
void setTimestamp(long timestamp)
Set the timestamp for this message.- Parameters:
timestamp- the timestamp
-
-