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.
|
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()
Partition
public Collection<NodeId> getMembers()
Partition
getMembers
in interface Partition