Module lettuce.core

Class ReplicationPartner

java.lang.Object
io.lettuce.core.models.role.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 Details

    • 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 Details

    • getHost

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

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

      public void setHost​(HostAndPort host)
    • setReplicationOffset

      public void setReplicationOffset​(long replicationOffset)
    • toString

      public String toString()
      Overrides:
      toString in class Object