public class PartitionRoutingInfoImpl extends Object implements PartitionRoutingInfo
| Constructor and Description |
|---|
PartitionRoutingInfoImpl(int generation,
int numOfPartitions,
int partitionId,
DynamicPartitionInfo dynamicPartitionInfo) |
| Modifier and Type | Method and Description |
|---|---|
DynamicPartitionInfo |
getDynamicPartitionInfo()
Gets dynamic partition info (if exists)
|
int |
getGeneration()
Gets the current cluster topology generation
|
int |
getNumOfPartitions()
Gets the number of partitions in the current cluster topology
|
int |
getPartitionId()
Gets the current partition id (one-based)
|
public PartitionRoutingInfoImpl(int generation,
int numOfPartitions,
int partitionId,
DynamicPartitionInfo dynamicPartitionInfo)
public int getGeneration()
PartitionRoutingInfogetGeneration in interface PartitionRoutingInfopublic int getNumOfPartitions()
PartitionRoutingInfogetNumOfPartitions in interface PartitionRoutingInfopublic int getPartitionId()
PartitionRoutingInfogetPartitionId in interface PartitionRoutingInfopublic DynamicPartitionInfo getDynamicPartitionInfo()
PartitionRoutingInfogetDynamicPartitionInfo in interface PartitionRoutingInfoCopyright © GigaSpaces.