public class DelegatingFuture<V> extends Object implements ICompletableFuture<V>
| Constructor and Description | 
|---|
DelegatingFuture(ICompletableFuture future,
                SerializationService serializationService)  | 
DelegatingFuture(ICompletableFuture future,
                SerializationService serializationService,
                V defaultValue)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
andThen(ExecutionCallback<V> callback)  | 
void | 
andThen(ExecutionCallback<V> callback,
       Executor executor)  | 
boolean | 
cancel(boolean mayInterruptIfRunning)  | 
V | 
get()  | 
V | 
get(long timeout,
   TimeUnit unit)  | 
boolean | 
isCancelled()  | 
boolean | 
isDone()  | 
protected void | 
setDone()  | 
protected void | 
setError(Throwable error)  | 
public DelegatingFuture(ICompletableFuture future, SerializationService serializationService)
public DelegatingFuture(ICompletableFuture future, SerializationService serializationService, V defaultValue)
public final V get() throws InterruptedException, ExecutionException
get in interface Future<V>InterruptedExceptionExecutionExceptionpublic final V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<V>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<V>protected void setError(Throwable error)
protected void setDone()
public void andThen(ExecutionCallback<V> callback)
andThen in interface ICompletableFuture<V>public void andThen(ExecutionCallback<V> callback, Executor executor)
andThen in interface ICompletableFuture<V>Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.