public final class ClientSmartInvocationServiceImpl extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HazelcastClientInstanceImpl |
client |
protected ClientConnectionManager |
connectionManager |
protected ClientExecutionService |
executionService |
protected ClientPartitionService |
partitionService |
| Constructor and Description |
|---|
ClientSmartInvocationServiceImpl(HazelcastClientInstanceImpl client,
LoadBalancer loadBalancer) |
protected final HazelcastClientInstanceImpl client
protected final ClientConnectionManager connectionManager
protected final ClientPartitionService partitionService
protected final ClientExecutionService executionService
public ClientSmartInvocationServiceImpl(HazelcastClientInstanceImpl client, LoadBalancer loadBalancer)
public void invokeOnPartitionOwner(ClientInvocation invocation, int partitionId) throws IOException
IOExceptionpublic void invokeOnRandomTarget(ClientInvocation invocation) throws IOException
IOExceptionpublic void invokeOnTarget(ClientInvocation invocation, Address target) throws IOException
IOExceptionpublic void invokeOnConnection(ClientInvocation invocation, ClientConnection connection) throws IOException
IOExceptionpublic <T> ICompletableFuture<T> invokeOnTarget(ClientRequest request, Address target) throws Exception
invokeOnTarget in interface ClientInvocationServiceExceptionpublic boolean isRedoOperation()
isRedoOperation in interface ClientInvocationServiceprotected void send(ClientInvocation invocation, ClientConnection connection) throws IOException
IOExceptionpublic EventHandler getEventHandler(int callId)
getEventHandler in interface ClientInvocationServicepublic boolean removeEventHandler(Integer callId)
ClientInvocationServiceremoveEventHandler in interface ClientInvocationServicecallId - of event handler registration requestpublic void cleanResources(ConstructorFunction<Object,Throwable> responseCtor, ClientConnection connection)
public void heartBeatStarted(Connection connection)
heartBeatStarted in interface ConnectionHeartbeatListenerpublic void heartBeatStopped(Connection connection)
heartBeatStopped in interface ConnectionHeartbeatListenerpublic void connectionAdded(Connection connection)
connectionAdded in interface ConnectionListenerpublic void connectionRemoved(Connection connection)
connectionRemoved in interface ConnectionListenerpublic void cleanConnectionResources(ClientConnection connection)
cleanConnectionResources in interface ClientInvocationServicepublic boolean isShutdown()
public void shutdown()
shutdown in interface ClientInvocationServicepublic void handlePacket(Packet packet)
handlePacket in interface ClientInvocationServiceCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.