| Modifier | Constructor and Description |
|---|---|
protected |
DefaultPartition()
Constructs an empty partition for the serializer.
|
|
DefaultPartition(Partition other)
Constructs a partition that is a copy of another.
|
|
DefaultPartition(PartitionId id,
Collection<NodeId> members)
Constructs a partition.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
PartitionId |
getId()
Returns the partition identifier.
|
Collection<NodeId> |
getMembers()
Returns the controller nodes that are members of this partition.
|
Version |
getVersion()
Returns the partition version.
|
int |
hashCode() |
String |
toString() |
protected DefaultPartition()
public DefaultPartition(PartitionId id, Collection<NodeId> members)
id - partition identifiermembers - partition member nodespublic DefaultPartition(Partition other)
other - partition to copypublic PartitionId getId()
Partitionpublic Version getVersion()
PartitiongetVersion in interface Partitionpublic Collection<NodeId> getMembers()
PartitiongetMembers in interface Partition