Package com.gigaspaces.internal.cluster
Class PartitionRoutingInfoImpl
java.lang.Object
com.gigaspaces.internal.cluster.PartitionRoutingInfoImpl
- All Implemented Interfaces:
PartitionRoutingInfo
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionRoutingInfoImpl(int generation, int numOfPartitions, int partitionId, DynamicPartitionInfo dynamicPartitionInfo) -
Method Summary
Modifier and TypeMethodDescriptionGets dynamic partition info (if exists)intGets the current cluster topology generationintGets the number of partitions in the current cluster topologyintGets the current partition id (one-based)
-
Constructor Details
-
PartitionRoutingInfoImpl
public PartitionRoutingInfoImpl(int generation, int numOfPartitions, int partitionId, DynamicPartitionInfo dynamicPartitionInfo)
-
-
Method Details
-
getGeneration
public int getGeneration()Description copied from interface:PartitionRoutingInfoGets the current cluster topology generation- Specified by:
getGenerationin interfacePartitionRoutingInfo
-
getNumOfPartitions
public int getNumOfPartitions()Description copied from interface:PartitionRoutingInfoGets the number of partitions in the current cluster topology- Specified by:
getNumOfPartitionsin interfacePartitionRoutingInfo
-
getPartitionId
public int getPartitionId()Description copied from interface:PartitionRoutingInfoGets the current partition id (one-based)- Specified by:
getPartitionIdin interfacePartitionRoutingInfo
-
getDynamicPartitionInfo
Description copied from interface:PartitionRoutingInfoGets dynamic partition info (if exists)- Specified by:
getDynamicPartitionInfoin interfacePartitionRoutingInfo
-