public class PartitionServiceProxy extends Object implements PartitionService
| Modifier and Type | Class and Description |
|---|---|
class |
PartitionServiceProxy.PartitionProxy |
| Constructor and Description |
|---|
PartitionServiceProxy(InternalPartitionService partitionService) |
| Modifier and Type | Method and Description |
|---|---|
String |
addMigrationListener(MigrationListener migrationListener) |
PartitionServiceProxy.PartitionProxy |
getPartition(int partitionId) |
PartitionServiceProxy.PartitionProxy |
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(InternalPartitionService partitionService)
public String randomPartitionKey()
PartitionServicerandomPartitionKey in interface PartitionServicepublic Set<Partition> getPartitions()
PartitionServicegetPartitions in interface PartitionServicepublic PartitionServiceProxy.PartitionProxy 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.public PartitionServiceProxy.PartitionProxy getPartition(int partitionId)
Copyright © 2021 Hazelcast, Inc.. All rights reserved.