com.hazelcast.spi.impl
Class AbstractCompletableFuture<V>
java.lang.Object
com.hazelcast.spi.impl.AbstractCompletableFuture<V>
- All Implemented Interfaces:
- ICompletableFuture<V>, Future<V>
- Direct Known Subclasses:
- TrackableJobFuture
public abstract class AbstractCompletableFuture<V>
- extends Object
- implements ICompletableFuture<V>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL_VALUE
protected static final Object NULL_VALUE
resultUpdater
protected final AtomicReferenceFieldUpdater<AbstractCompletableFuture,Object> resultUpdater
nodeEngine
protected final NodeEngine nodeEngine
result
protected volatile Object result
AbstractCompletableFuture
protected AbstractCompletableFuture(NodeEngine nodeEngine,
ILogger logger)
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>
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
setResult
public void setResult(Object result)
getResult
protected V getResult()
fireCallbacks
protected void fireCallbacks()
getAsyncExecutor
protected ExecutorService getAsyncExecutor()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.