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()
PartitionRoutingInfo
getGeneration
in interface PartitionRoutingInfo
public int getNumOfPartitions()
PartitionRoutingInfo
getNumOfPartitions
in interface PartitionRoutingInfo
public int getPartitionId()
PartitionRoutingInfo
getPartitionId
in interface PartitionRoutingInfo
public DynamicPartitionInfo getDynamicPartitionInfo()
PartitionRoutingInfo
getDynamicPartitionInfo
in interface PartitionRoutingInfo
Copyright © GigaSpaces.