com.hazelcast.client.spi
Interface ClientInvocationService

All Known Implementing Classes:
ClientNonSmartInvocationServiceImpl, ClientSmartInvocationServiceImpl

public interface ClientInvocationService

Author:
mdogan 5/16/13

Method Summary
 void cleanConnectionResources(ClientConnection connection)
           
 EventHandler getEventHandler(int callId)
           
 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 removeEventHandler(Integer callId)
          Removes event handler corresponding to callId
 void shutdown()
           
 

Method Detail

invokeOnConnection

void invokeOnConnection(ClientInvocation invocation,
                        ClientConnection connection)
                        throws IOException
Throws:
IOException

invokeOnPartitionOwner

void invokeOnPartitionOwner(ClientInvocation invocation,
                            int partitionId)
                            throws IOException
Throws:
IOException

invokeOnRandomTarget

void invokeOnRandomTarget(ClientInvocation invocation)
                          throws IOException
Throws:
IOException

invokeOnTarget

void invokeOnTarget(ClientInvocation invocation,
                    Address target)
                    throws IOException
Throws:
IOException

isRedoOperation

boolean isRedoOperation()

removeEventHandler

boolean removeEventHandler(Integer callId)
Removes event handler corresponding to callId

Parameters:
callId - of event handler registration request
Returns:
true if found and removed, false otherwise

shutdown

void shutdown()

handlePacket

void handlePacket(Packet packet)

cleanConnectionResources

void cleanConnectionResources(ClientConnection connection)

getEventHandler

EventHandler getEventHandler(int callId)

invokeOnTarget

<T> ICompletableFuture<T> invokeOnTarget(ClientRequest request,
                                         Address target)
                                     throws Exception
Throws:
Exception


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