Class GridCacheCompoundFuture<T,R>
- java.lang.Object
-
- org.apache.ignite.internal.util.future.GridFutureAdapter<R>
-
- org.apache.ignite.internal.util.future.GridCompoundFuture<T,R>
-
- org.apache.ignite.internal.processors.cache.GridCacheCompoundFuture<T,R>
-
- All Implemented Interfaces:
Serializable,IgniteInternalFuture<R>,GridCacheFuture<R>,IgniteInClosure<IgniteInternalFuture<T>>
- Direct Known Subclasses:
GridDhtTxPrepareFuture,GridNearTxPrepareFutureAdapter
public abstract class GridCacheCompoundFuture<T,R> extends GridCompoundFuture<T,R> implements GridCacheFuture<R>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGridCacheCompoundFuture(@Nullable IgniteReducer<T,R> rdc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longduration()Gets duration in milliseconds between start of the future and current time if future is not finished, or between start and finish of this future.protected booleanonDone(R res, @Nullable Throwable err, boolean cancel)longstartTime()Gets start time for this future.-
Methods inherited from class org.apache.ignite.internal.util.future.GridCompoundFuture
add, apply, cancel, clear, compoundsLockedExclusively, compoundsReadLock, compoundsReadUnlock, future, futures, futuresCountNoLock, hasFutures, hasPending, ignoreFailure, initialized, logDebug, logError, markInitialized, processFailure, toString
-
Methods inherited from class org.apache.ignite.internal.util.future.GridFutureAdapter
chain, chain, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, listen, logger, onCancelled, onDone, onDone, onDone, onDone, reset, result
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.cache.GridCacheFuture
futureId, markNotTrackable, onNodeLeft, trackable
-
Methods inherited from interface org.apache.ignite.internal.IgniteInternalFuture
cancel, chain, chain, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, listen, result
-
-
-
-
Constructor Detail
-
GridCacheCompoundFuture
protected GridCacheCompoundFuture(@Nullable @Nullable IgniteReducer<T,R> rdc)- Parameters:
rdc- Reducer.
-
-
Method Detail
-
startTime
public long startTime()
Gets start time for this future.- Specified by:
startTimein interfaceGridCacheFuture<T>- Returns:
- Start time for this future.
-
duration
public long duration()
Gets duration in milliseconds between start of the future and current time if future is not finished, or between start and finish of this future.- Specified by:
durationin interfaceGridCacheFuture<T>- Returns:
- Time in milliseconds this future has taken to execute.
-
onDone
protected boolean onDone(@Nullable R res, @Nullable @Nullable Throwable err, boolean cancel)- Overrides:
onDonein classGridFutureAdapter<R>- Parameters:
res- Result.err- Error.cancel-Trueif future is being cancelled.- Returns:
Trueif result was set by this call.
-
-