Package io.lettuce.core.models.role
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 Summary
Constructors Constructor Description ReplicationPartner()
ReplicationPartner(HostAndPort host, long replicationOffset)
Constructs a replication partner.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostAndPort
getHost()
long
getReplicationOffset()
void
setHost(HostAndPort host)
void
setReplicationOffset(long replicationOffset)
String
toString()
-
-
-
Constructor Detail
-
ReplicationPartner
public ReplicationPartner()
-
ReplicationPartner
public ReplicationPartner(HostAndPort host, long replicationOffset)
Constructs a replication partner.- Parameters:
host
- host information, must not benull
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.
-
setHost
public void setHost(HostAndPort host)
-
setReplicationOffset
public void setReplicationOffset(long replicationOffset)
-
-