Class ReplicationPartner

  • All Implemented Interfaces:
    Serializable

    public class ReplicationPartner
    extends Object
    implements Serializable
    Replication partner providing the host and the replication offset.
    Since:
    3.0
    Author:
    Mark Paluch
    See Also:
    Serialized Form
    • Constructor Detail

      • ReplicationPartner

        public ReplicationPartner()
      • ReplicationPartner

        public ReplicationPartner​(HostAndPort host,
                                  long replicationOffset)
        Constructs a replication partner.
        Parameters:
        host - host information, must not be null
        replicationOffset - the replication offset
    • Method Detail

      • getHost

        public HostAndPort getHost()
        Returns:
        host with port of the replication partner.
      • getReplicationOffset

        public long getReplicationOffset()
        Returns:
        the replication offset.
      • setReplicationOffset

        public void setReplicationOffset​(long replicationOffset)