public class MemberMinimalPartitionService extends Object implements MinimalPartitionService
MinimalPartitionService| Constructor and Description |
|---|
MemberMinimalPartitionService(IPartitionService partitionService) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPartitionCount()
Returns the number of partitions.
|
int |
getPartitionId(Data key)
Returns the partition ID for a Data key.
|
int |
getPartitionId(Object key)
Returns the partition ID for a given object.
|
public MemberMinimalPartitionService(IPartitionService partitionService)
public int getPartitionId(Data key)
MinimalPartitionServicegetPartitionId in interface MinimalPartitionServicekey - the Data keypublic int getPartitionId(Object key)
MinimalPartitionServicegetPartitionId in interface MinimalPartitionServicekey - the object keypublic int getPartitionCount()
MinimalPartitionServicegetPartitionCount in interface MinimalPartitionServiceCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.