public final class PartitionServiceProxy extends Object implements PartitionService
| Constructor and Description |
|---|
PartitionServiceProxy(ClientPartitionService partitionService,
ClientListenerService listenerService) |
| Modifier and Type | Method and Description |
|---|---|
String |
addMigrationListener(MigrationListener migrationListener) |
String |
addPartitionLostListener(PartitionLostListener partitionLostListener) |
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) |
boolean |
removePartitionLostListener(String registrationId) |
public PartitionServiceProxy(ClientPartitionService partitionService, ClientListenerService listenerService)
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 String addPartitionLostListener(PartitionLostListener partitionLostListener)
addPartitionLostListener in interface PartitionServicepublic boolean removePartitionLostListener(String registrationId)
removePartitionLostListener 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 © 2020 Hazelcast, Inc.. All Rights Reserved.