Interface GridCacheFuture<R>
-
- All Superinterfaces:
IgniteInternalFuture<R>
- All Known Subinterfaces:
GridCacheAtomicFuture<R>,GridCacheVersionedFuture<T>
- All Known Implementing Classes:
CacheDistributedGetFutureAdapter,GridCacheCompoundFuture,GridCacheCompoundIdentityFuture,GridCacheFutureAdapter,GridCacheTxRecoveryFuture,GridDhtAtomicAbstractUpdateFuture,GridDhtColocatedLockFuture,GridDhtLockFuture,GridDhtTxFinishFuture,GridDhtTxPrepareFuture,GridNearAtomicAbstractUpdateFuture,GridNearAtomicSingleUpdateFuture,GridNearAtomicUpdateFuture,GridNearGetFuture,GridNearLockFuture,GridNearOptimisticSerializableTxPrepareFuture,GridNearOptimisticTxPrepareFuture,GridNearOptimisticTxPrepareFutureAdapter,GridNearPessimisticTxPrepareFuture,GridNearTxFinishFuture,GridNearTxPrepareFutureAdapter,GridPartitionedGetFuture,GridPartitionedSingleGetFuture
public interface GridCacheFuture<R> extends IgniteInternalFuture<R>
This interface should be implemented by all distributed futures.
-
-
Method Summary
All Methods Instance Methods Abstract 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.IgniteUuidfutureId()voidmarkNotTrackable()Marks this future as non-trackable.booleanonNodeLeft(UUID nodeId)Callback for when node left.longstartTime()Gets start time for this future.booleantrackable()-
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
-
-
-
-
Method Detail
-
startTime
long startTime()
Gets start time for this future.- Returns:
- Start time for this future.
-
duration
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.- Returns:
- Time in milliseconds this future has taken to execute.
-
futureId
IgniteUuid futureId()
- Returns:
- Unique identifier for this future.
-
onNodeLeft
boolean onNodeLeft(UUID nodeId)
Callback for when node left.- Parameters:
nodeId- Left node ID.- Returns:
Trueif future cared about this node.
-
trackable
boolean trackable()
- Returns:
Trueif future should be tracked.
-
markNotTrackable
void markNotTrackable()
Marks this future as non-trackable.
-
-