com.hazelcast.util.executor
Class CompletableFutureTask<V>

java.lang.Object
  extended by java.util.concurrent.FutureTask<V>
      extended by com.hazelcast.util.executor.CompletableFutureTask<V>
All Implemented Interfaces:
ICompletableFuture<V>, Runnable, Future<V>, RunnableFuture<V>

public class CompletableFutureTask<V>
extends FutureTask<V>
implements ICompletableFuture<V>


Constructor Summary
CompletableFutureTask(Callable<V> callable, ExecutorService asyncExecutor)
           
CompletableFutureTask(Runnable runnable, V result, ExecutorService asyncExecutor)
           
 
Method Summary
 void andThen(ExecutionCallback<V> callback)
           
 void andThen(ExecutionCallback<V> callback, Executor executor)
           
 void run()
           
 
Methods inherited from class java.util.concurrent.FutureTask
cancel, done, get, get, isCancelled, isDone, runAndReset, set, setException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.concurrent.Future
cancel, get, get, isCancelled, isDone
 

Constructor Detail

CompletableFutureTask

public CompletableFutureTask(Callable<V> callable,
                             ExecutorService asyncExecutor)

CompletableFutureTask

public CompletableFutureTask(Runnable runnable,
                             V result,
                             ExecutorService asyncExecutor)
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Specified by:
run in interface RunnableFuture<V>
Overrides:
run in class FutureTask<V>

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>


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