Class ClusterMessageBase

java.lang.Object
org.apache.catalina.ha.ClusterMessageBase
All Implemented Interfaces:
Serializable, ClusterMessage
Direct Known Subclasses:
FileMessage, SessionMessageImpl

public abstract class ClusterMessageBase extends Object implements ClusterMessage
Base implementation of ClusterMessage providing common fields and methods for cluster messages.
See Also:
  • Field Details

    • address

      protected transient Member address
      The member associated with this message.
  • Constructor Details

    • ClusterMessageBase

      public ClusterMessageBase()
      Default constructor for ClusterMessageBase.
  • Method Details

    • getAddress

      public Member getAddress()
      Description copied from interface: ClusterMessage
      Returns the member associated with this message.
      Specified by:
      getAddress in interface ClusterMessage
      Returns:
      the member address
    • getTimestamp

      public long getTimestamp()
      Description copied from interface: ClusterMessage
      Returns the timestamp of this message.
      Specified by:
      getTimestamp in interface ClusterMessage
      Returns:
      the timestamp in milliseconds
    • setAddress

      public void setAddress(Member member)
      Description copied from interface: ClusterMessage
      Set the member associated with the message.
      Specified by:
      setAddress in interface ClusterMessage
      Parameters:
      member - the member
    • setTimestamp

      public void setTimestamp(long timestamp)
      Description copied from interface: ClusterMessage
      Set the timestamp for this message.
      Specified by:
      setTimestamp in interface ClusterMessage
      Parameters:
      timestamp - the timestamp