com.hazelcast.client.spi.impl
Class ClientCallFuture<V>

java.lang.Object
  extended by com.hazelcast.client.spi.impl.ClientCallFuture<V>
All Implemented Interfaces:
ICompletableFuture<V>, Callback, Future<V>

public class ClientCallFuture<V>
extends Object
implements ICompletableFuture<V>, Callback


Constructor Summary
ClientCallFuture(HazelcastClientInstanceImpl client, ClientRequest request, EventHandler handler)
           
 
Method Summary
 void andThen(ExecutionCallback<V> callback)
           
 void andThen(ExecutionCallback<V> callback, Executor executor)
           
 void andThenInternal(ExecutionCallback<Data> callback)
           
 boolean cancel(boolean mayInterruptIfRunning)
           
 V get()
           
 V get(long timeout, TimeUnit unit)
           
 ClientConnection getConnection()
           
 EventHandler getHandler()
           
 ClientRequest getRequest()
           
 boolean isCancelled()
           
 boolean isDone()
           
 void notify(Object response)
           
 boolean resend()
           
 void setConnection(ClientConnection connection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientCallFuture

public ClientCallFuture(HazelcastClientInstanceImpl client,
                        ClientRequest request,
                        EventHandler handler)
Method Detail

cancel

public boolean cancel(boolean mayInterruptIfRunning)
Specified by:
cancel in interface Future<V>

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface Future<V>

isDone

public boolean isDone()
Specified by:
isDone in interface Future<V>

get

public V get()
      throws InterruptedException,
             ExecutionException
Specified by:
get in interface Future<V>
Throws:
InterruptedException
ExecutionException

get

public V get(long timeout,
             TimeUnit unit)
      throws InterruptedException,
             ExecutionException,
             TimeoutException
Specified by:
get in interface Future<V>
Throws:
InterruptedException
ExecutionException
TimeoutException

notify

public void notify(Object response)
Specified by:
notify in interface Callback

andThen

public void andThen(ExecutionCallback<V> callback)
Specified by:
andThen in interface ICompletableFuture<V>

andThen

public void andThen(ExecutionCallback<V> callback,
                    Executor executor)
Specified by:
andThen in interface ICompletableFuture<V>

andThenInternal

public void andThenInternal(ExecutionCallback<Data> callback)

getRequest

public ClientRequest getRequest()

getHandler

public EventHandler getHandler()

getConnection

public ClientConnection getConnection()

resend

public boolean resend()

setConnection

public void setConnection(ClientConnection connection)


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