public final class ClientSmartInvocationServiceImpl extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HazelcastClientInstanceImpl |
client |
protected ClientListenerServiceImpl |
clientListenerService |
protected ClientConnectionManager |
connectionManager |
protected ClientExecutionService |
executionService |
protected ClientPartitionService |
partitionService |
| Constructor and Description |
|---|
ClientSmartInvocationServiceImpl(HazelcastClientInstanceImpl client,
LoadBalancer loadBalancer) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanConnectionResources(ClientConnection connection) |
void |
cleanResources(ConstructorFunction<Object,Throwable> responseCtor,
ClientConnection connection) |
void |
connectionAdded(Connection connection) |
void |
connectionRemoved(Connection connection) |
void |
handlePacket(Packet packet) |
void |
invokeOnConnection(ClientInvocation invocation,
ClientConnection connection) |
void |
invokeOnPartitionOwner(ClientInvocation invocation,
int partitionId) |
void |
invokeOnRandomTarget(ClientInvocation invocation) |
void |
invokeOnTarget(ClientInvocation invocation,
Address target) |
<T> ICompletableFuture<T> |
invokeOnTarget(ClientRequest request,
Address target) |
boolean |
isRedoOperation() |
boolean |
isShutdown() |
protected void |
send(ClientInvocation invocation,
ClientConnection connection) |
void |
shutdown() |
void |
start() |
protected final HazelcastClientInstanceImpl client
protected ClientConnectionManager connectionManager
protected ClientPartitionService partitionService
protected ClientExecutionService executionService
protected ClientListenerServiceImpl clientListenerService
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 void start()
start in interface ClientInvocationServicepublic <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 void cleanResources(ConstructorFunction<Object,Throwable> responseCtor, ClientConnection connection)
public 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.