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)
MinimalPartitionService
getPartitionId
in interface MinimalPartitionService
key
- the Data key.public int getPartitionId(Object key)
MinimalPartitionService
getPartitionId
in interface MinimalPartitionService
key
- the object key.public int getPartitionCount()
MinimalPartitionService
getPartitionCount
in interface MinimalPartitionService
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.