com.hazelcast.client.spi.impl
Class ClientNonSmartInvocationServiceImpl
java.lang.Object
com.hazelcast.client.spi.impl.ClientNonSmartInvocationServiceImpl
- All Implemented Interfaces:
- ClientInvocationService, ConnectionHeartbeatListener, ConnectionListener
public class ClientNonSmartInvocationServiceImpl
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
client
protected final HazelcastClientInstanceImpl client
connectionManager
protected final ClientConnectionManager connectionManager
partitionService
protected final ClientPartitionService partitionService
executionService
protected final ClientExecutionService executionService
ClientNonSmartInvocationServiceImpl
public ClientNonSmartInvocationServiceImpl(HazelcastClientInstanceImpl client)
invokeOnRandomTarget
public void invokeOnRandomTarget(ClientInvocation invocation)
throws IOException
- Throws:
IOException
invokeOnConnection
public void invokeOnConnection(ClientInvocation invocation,
ClientConnection connection)
throws IOException
- Throws:
IOException
invokeOnPartitionOwner
public void invokeOnPartitionOwner(ClientInvocation invocation,
int partitionId)
throws IOException
- Throws:
IOException
invokeOnTarget
public void invokeOnTarget(ClientInvocation invocation,
Address target)
throws IOException
- Throws:
IOException
invokeOnTarget
public <T> ICompletableFuture<T> invokeOnTarget(ClientRequest request,
Address target)
throws Exception
- Specified by:
invokeOnTarget
in interface ClientInvocationService
- Throws:
Exception
isRedoOperation
public boolean isRedoOperation()
- Specified by:
isRedoOperation
in interface ClientInvocationService
send
protected void send(ClientInvocation invocation,
ClientConnection connection)
throws IOException
- Throws:
IOException
getEventHandler
public EventHandler getEventHandler(int callId)
- Specified by:
getEventHandler
in interface ClientInvocationService
removeEventHandler
public boolean removeEventHandler(Integer callId)
- Description copied from interface:
ClientInvocationService
- Removes event handler corresponding to callId
- Specified by:
removeEventHandler
in interface ClientInvocationService
- Parameters:
callId
- of event handler registration request
- Returns:
- true if found and removed, false otherwise
cleanResources
public void cleanResources(ConstructorFunction<Object,Throwable> responseCtor,
ClientConnection connection)
heartBeatStarted
public void heartBeatStarted(Connection connection)
- Specified by:
heartBeatStarted
in interface ConnectionHeartbeatListener
heartBeatStopped
public void heartBeatStopped(Connection connection)
- Specified by:
heartBeatStopped
in interface ConnectionHeartbeatListener
connectionAdded
public void connectionAdded(Connection connection)
- Specified by:
connectionAdded
in interface ConnectionListener
connectionRemoved
public void connectionRemoved(Connection connection)
- Specified by:
connectionRemoved
in interface ConnectionListener
cleanConnectionResources
public void cleanConnectionResources(ClientConnection connection)
- Specified by:
cleanConnectionResources
in interface ClientInvocationService
shutdown
public void shutdown()
- Specified by:
shutdown
in interface ClientInvocationService
handlePacket
public void handlePacket(Packet packet)
- Specified by:
handlePacket
in interface ClientInvocationService
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.