Class ClusterMessageBase
java.lang.Object
org.apache.catalina.ha.ClusterMessageBase
- All Implemented Interfaces:
Serializable, ClusterMessage
- Direct Known Subclasses:
FileMessage, SessionMessageImpl
Base implementation of
ClusterMessage providing common fields and methods
for cluster messages.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the member associated with this message.longReturns the timestamp of this message.voidsetAddress(Member member) Set the member associated with the message.voidsetTimestamp(long timestamp) Set the timestamp for this message.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClusterMessage
getUniqueId
-
Field Details
-
address
The member associated with this message.
-
-
Constructor Details
-
ClusterMessageBase
public ClusterMessageBase()Default constructor for ClusterMessageBase.
-
-
Method Details
-
getAddress
Description copied from interface:ClusterMessageReturns the member associated with this message.- Specified by:
getAddressin interfaceClusterMessage- Returns:
- the member address
-
getTimestamp
public long getTimestamp()Description copied from interface:ClusterMessageReturns the timestamp of this message.- Specified by:
getTimestampin interfaceClusterMessage- Returns:
- the timestamp in milliseconds
-
setAddress
Description copied from interface:ClusterMessageSet the member associated with the message.- Specified by:
setAddressin interfaceClusterMessage- Parameters:
member- the member
-
setTimestamp
public void setTimestamp(long timestamp) Description copied from interface:ClusterMessageSet the timestamp for this message.- Specified by:
setTimestampin interfaceClusterMessage- Parameters:
timestamp- the timestamp
-