public class PartitionTableView extends Object
getReplicas(int)
returns clone of internal addresses array.
Constructor and Description |
---|
PartitionTableView(InternalPartition[] partitions,
int version) |
PartitionTableView(PartitionReplica[][] replicas,
int version) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getLength() |
PartitionReplica |
getReplica(int partitionId,
int replicaIndex) |
PartitionReplica[] |
getReplicas(int partitionId) |
int |
getVersion() |
int |
hashCode() |
String |
toString() |
public PartitionTableView(PartitionReplica[][] replicas, int version)
public PartitionTableView(InternalPartition[] partitions, int version)
public int getVersion()
public PartitionReplica getReplica(int partitionId, int replicaIndex)
public int getLength()
public PartitionReplica[] getReplicas(int partitionId)
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.