public class GridCompoundFuture<T,R> extends GridFutureAdapter<R>
AbstractQueuedSynchronizer.ConditionObject| Constructor and Description |
|---|
GridCompoundFuture() |
GridCompoundFuture(IgniteReducer<T,R> rdc) |
GridCompoundFuture(IgniteReducer<T,R> rdc,
Iterable<IgniteInternalFuture<T>> futs) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(IgniteInternalFuture<T> fut)
Adds a future to this compound future.
|
void |
addAll(IgniteInternalFuture<T>... futs)
Adds futures to this compound future.
|
void |
addAll(Iterable<IgniteInternalFuture<T>> futs)
Adds futures to this compound future.
|
boolean |
cancel()
Default no-op implementation that always returns
false. |
Collection<IgniteInternalFuture<T>> |
futures()
Gets collection of futures.
|
boolean |
hasPending()
Checks if there are pending futures.
|
void |
ignoreChildFailures(Class<? extends Throwable>... ignoreChildFailures) |
boolean |
initialized() |
void |
markInitialized()
Mark this future as initialized.
|
Collection<IgniteInternalFuture<T>> |
pending()
Gets pending (unfinished) futures.
|
IgniteReducer<T,R> |
reducer()
Gets optional reducer.
|
void |
reducer(IgniteReducer<T,R> rdc)
Sets optional reducer.
|
String |
toString() |
chain, duration, endTime, error, get, get, get, get0, ignoreInterrupts, isCancelled, isDone, isFailed, listen, onCancelled, onDone, onDone, onDone, onDone, result, startTime, tryAcquireShared, tryReleaseSharedacquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, tryAcquire, tryAcquireNanos, tryAcquireSharedNanos, tryReleasegetExclusiveOwnerThread, setExclusiveOwnerThreadpublic GridCompoundFuture()
public GridCompoundFuture(@Nullable IgniteReducer<T,R> rdc)
rdc - Reducer.public GridCompoundFuture(@Nullable IgniteReducer<T,R> rdc, @Nullable Iterable<IgniteInternalFuture<T>> futs)
rdc - Reducer to add.futs - Futures to add.public boolean cancel()
throws IgniteCheckedException
false.
Futures that do support cancellation should override this method
and call GridFutureAdapter.onCancelled() callback explicitly if cancellation
indeed did happen.cancel in interface IgniteInternalFuture<R>cancel in class GridFutureAdapter<R>True if future was canceled (i.e. was not finished prior to this call).IgniteCheckedException - If cancellation failed.public Collection<IgniteInternalFuture<T>> futures()
public Collection<IgniteInternalFuture<T>> pending()
public void ignoreChildFailures(Class<? extends Throwable>... ignoreChildFailures)
ignoreChildFailures - Flag indicating whether compound future should ignore child futures failures.public boolean hasPending()
GridFutureAdapter.isDone() because child classes may override GridFutureAdapter.onDone(Object, Throwable)
call and delay completion.True if there are pending futures.public boolean initialized()
True if this future was initialized. Initialization happens when
markInitialized() method is called on future.public void add(IgniteInternalFuture<T> fut)
fut - Future to add.public void addAll(@Nullable IgniteInternalFuture<T>... futs)
futs - Futures to add.public void addAll(@Nullable Iterable<IgniteInternalFuture<T>> futs)
futs - Futures to add.@Nullable public IgniteReducer<T,R> reducer()
public void reducer(@Nullable IgniteReducer<T,R> rdc)
rdc - Optional reducer.public void markInitialized()
public String toString()
toString in class GridFutureAdapter<R>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.2.0-incubating Release Date : June 16 2015