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
Modifier and Type Method Description HostAndPortgetHost()longgetReplicationOffset()voidsetHost(HostAndPort host)voidsetReplicationOffset(long replicationOffset)StringtoString()
-
Constructor Details
-
ReplicationPartner
public ReplicationPartner() -
ReplicationPartner
Constructs a replication partner.- Parameters:
host- host information, must not benullreplicationOffset- the replication offset
-
-
Method Details