T - The type of POJO associated with the future object setpublic class CompoundObjectSetFuture<T> extends com.google.common.util.concurrent.AbstractFuture<ObjectSet<T>> implements ObjectSetFuture<T>
CompoundObjectSetFuture class defines an object set which is
designed to return a compound results of multiple object set futures which
are created from a sequence of select statements and requires to be combined
together.| Constructor and Description |
|---|
CompoundObjectSetFuture(StatementManager.Context<T> context,
List<ObjectSetFuture<T>> futures,
StatementManagerImpl mgr)
Instantiates a new
CompoundObjectSetFuture object. |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Runnable listener,
Executor exec) |
boolean |
cancel(boolean mayInterruptIfRunning) |
ObjectSet<T> |
get() |
ObjectSet<T> |
get(long timeout,
TimeUnit unit) |
ObjectSet<T> |
getUninterruptibly() |
ObjectSet<T> |
getUninterruptibly(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public CompoundObjectSetFuture(StatementManager.Context<T> context, List<ObjectSetFuture<T>> futures, StatementManagerImpl mgr)
CompoundObjectSetFuture object.context - the statement context associated with this object set futurefutures - the list of object set futures to compound togethermgr - the statement managerNullPointerException - if mgr, context,
statements or any of the object set futures are
nullpublic boolean isDone()
public boolean isCancelled()
public boolean cancel(boolean mayInterruptIfRunning)
public ObjectSet<T> get(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException, ExecutionException
get in interface Future<ObjectSet<T>>get in interface ObjectSetFuture<T>get in class com.google.common.util.concurrent.AbstractFuture<ObjectSet<T>>InterruptedExceptionTimeoutExceptionExecutionExceptionAbstractFuture.get(long, java.util.concurrent.TimeUnit)public ObjectSet<T> get() throws InterruptedException, ExecutionException
get in interface Future<ObjectSet<T>>get in interface ObjectSetFuture<T>get in class com.google.common.util.concurrent.AbstractFuture<ObjectSet<T>>InterruptedExceptionExecutionExceptionAbstractFuture.get()public ObjectSet<T> getUninterruptibly()
getUninterruptibly in interface ObjectSetFuture<T>ObjectSetFuture.getUninterruptibly()public ObjectSet<T> getUninterruptibly(long timeout, TimeUnit unit) throws TimeoutException
getUninterruptibly in interface ObjectSetFuture<T>TimeoutExceptionObjectSetFuture.getUninterruptibly(long, java.util.concurrent.TimeUnit)Copyright (C) 2015-2017 The Helenus Driver Project Authors.