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