public final class PartitionServiceProxy extends Object implements PartitionService
| Constructor and Description |
|---|
PartitionServiceProxy(ClientPartitionService partitionService) |
| Modifier and Type | Method and Description |
|---|---|
String |
addMigrationListener(MigrationListener migrationListener) |
boolean |
forceLocalMemberToBeSafe(long timeout,
TimeUnit unit) |
Partition |
getPartition(Object key) |
Set<Partition> |
getPartitions() |
boolean |
isClusterSafe() |
boolean |
isLocalMemberSafe() |
boolean |
isMemberSafe(Member member) |
String |
randomPartitionKey() |
boolean |
removeMigrationListener(String registrationId) |
public PartitionServiceProxy(ClientPartitionService partitionService)
public String randomPartitionKey()
randomPartitionKey in interface PartitionServicepublic Set<Partition> getPartitions()
getPartitions in interface PartitionServicepublic Partition getPartition(Object key)
getPartition in interface PartitionServicepublic String addMigrationListener(MigrationListener migrationListener)
addMigrationListener in interface PartitionServicepublic boolean removeMigrationListener(String registrationId)
removeMigrationListener in interface PartitionServicepublic boolean isClusterSafe()
isClusterSafe in interface PartitionServicepublic boolean isMemberSafe(Member member)
isMemberSafe in interface PartitionServicepublic boolean isLocalMemberSafe()
isLocalMemberSafe in interface PartitionServicepublic boolean forceLocalMemberToBeSafe(long timeout,
TimeUnit unit)
forceLocalMemberToBeSafe in interface PartitionServiceCopyright © 2014 Hazelcast, Inc.. All Rights Reserved.