public final class ClientPartitionServiceImpl extends com.hazelcast.client.impl.protocol.codec.ClientAddPartitionListenerCodec.AbstractEventHandler implements EventHandler<ClientMessage>, ClientPartitionService
ClientPartitionService implementation.| Constructor and Description |
|---|
ClientPartitionServiceImpl(HazelcastClientInstanceImpl client) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeListenerRegister()
This method is called before registration request is sent to node.
|
Partition |
getPartition(int partitionId) |
int |
getPartitionCount() |
int |
getPartitionId(Data key) |
int |
getPartitionId(Object key) |
Address |
getPartitionOwner(int partitionId) |
void |
handle(Collection<Map.Entry<Address,List<Integer>>> collection,
int partitionStateVersion) |
void |
listenPartitionTable(Connection ownerConnection) |
void |
onListenerRegister()
This method is called when registration request response is successfully returned from node.
|
void |
refreshPartitions() |
void |
start() |
void |
stop() |
handleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlepublic ClientPartitionServiceImpl(HazelcastClientInstanceImpl client)
public void start()
public void listenPartitionTable(Connection ownerConnection) throws Exception
Exceptionpublic void refreshPartitions()
public void handle(Collection<Map.Entry<Address,List<Integer>>> collection, int partitionStateVersion)
handle in class com.hazelcast.client.impl.protocol.codec.ClientAddPartitionListenerCodec.AbstractEventHandlerpublic void beforeListenerRegister()
EventHandlerbeforeListenerRegister in interface EventHandler<ClientMessage>public void onListenerRegister()
EventHandleronListenerRegister in interface EventHandler<ClientMessage>public void stop()
public Address getPartitionOwner(int partitionId)
getPartitionOwner in interface ClientPartitionServicepublic int getPartitionId(Data key)
getPartitionId in interface ClientPartitionServicepublic int getPartitionId(Object key)
getPartitionId in interface ClientPartitionServicepublic int getPartitionCount()
getPartitionCount in interface ClientPartitionServicepublic Partition getPartition(int partitionId)
getPartition in interface ClientPartitionServiceCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.