ClusterMessageBase (Apache Tomcat 11.0.22 API Documentation)
Description: declaration: package: org.apache.catalina.ha, class: ClusterMessageBase

# 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

See Also:
  - Serialized Form

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected Member`
  `address`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ClusterMessageBase()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Member`
  `getAddress()`
  `long`
  `getTimestamp()`
  `void`
  `setAddress(Member member)`
  Set the member associated with the message.
  `void`
  `setTimestamp(long timestamp)`
  Set the timestamp for this message.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface ClusterMessage

  `getUniqueId`

- ## Field Details

  - ### address

    protected transient Member address

- ## Constructor Details

  - ### ClusterMessageBase

    public ClusterMessageBase()

- ## Method Details

  - ### getAddress

    public Member getAddress()
    Specified by:
      `getAddress` in interface `ClusterMessage`
    Returns:
      the member associated with the message

  - ### getTimestamp

    public long getTimestamp()
    Specified by:
      `getTimestamp` in interface `ClusterMessage`
    Returns:
      the message timestamp

  - ### 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