public final class PartitionServiceProxy extends Object implements PartitionService
| Constructor and Description |
|---|
PartitionServiceProxy(ClientPartitionService partitionService) |
| Modifier and Type | Method and Description |
|---|---|
String |
addMigrationListener(MigrationListener migrationListener) |
Partition |
getPartition(Object key)
Returns partition which given key belongs to.
|
Set<Partition> |
getPartitions()
Returns all partitions.
|
String |
randomPartitionKey()
Generates a random partition key.
|
boolean |
removeMigrationListener(String registrationId) |
public PartitionServiceProxy(ClientPartitionService partitionService)
public String randomPartitionKey()
PartitionServicerandomPartitionKey in interface PartitionServicepublic Set<Partition> getPartitions()
PartitionServicegetPartitions in interface PartitionServicepublic Partition getPartition(Object key)
PartitionServicegetPartition in interface PartitionServicekey - keypublic String addMigrationListener(MigrationListener migrationListener)
addMigrationListener in interface PartitionServicemigrationListener - listenerpublic boolean removeMigrationListener(String registrationId)
removeMigrationListener in interface PartitionServiceregistrationId - Id of listener registration.Copyright © 2021 Hazelcast, Inc.. All rights reserved.