com.hazelcast.client.proxy
Class PartitionServiceProxy

java.lang.Object
  extended by com.hazelcast.client.proxy.PartitionServiceProxy
All Implemented Interfaces:
PartitionService

public final class PartitionServiceProxy
extends Object
implements PartitionService

Author:
mdogan 5/16/13

Constructor Summary
PartitionServiceProxy(ClientPartitionService partitionService)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionServiceProxy

public PartitionServiceProxy(ClientPartitionService partitionService)
Method Detail

randomPartitionKey

public String randomPartitionKey()
Specified by:
randomPartitionKey in interface PartitionService

getPartitions

public Set<Partition> getPartitions()
Specified by:
getPartitions in interface PartitionService

getPartition

public Partition getPartition(Object key)
Specified by:
getPartition in interface PartitionService

addMigrationListener

public String addMigrationListener(MigrationListener migrationListener)
Specified by:
addMigrationListener in interface PartitionService

removeMigrationListener

public boolean removeMigrationListener(String registrationId)
Specified by:
removeMigrationListener in interface PartitionService

isClusterSafe

public boolean isClusterSafe()
Specified by:
isClusterSafe in interface PartitionService

isMemberSafe

public boolean isMemberSafe(Member member)
Specified by:
isMemberSafe in interface PartitionService

isLocalMemberSafe

public boolean isLocalMemberSafe()
Specified by:
isLocalMemberSafe in interface PartitionService

forceLocalMemberToBeSafe

public boolean forceLocalMemberToBeSafe(long timeout,
                                        TimeUnit unit)
Specified by:
forceLocalMemberToBeSafe in interface PartitionService


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.