public abstract class GridCacheFutureAdapter<R> extends GridFutureAdapter<R> implements GridCacheFuture<R>
Constructor and Description |
---|
GridCacheFutureAdapter()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected boolean |
onDone(R res,
Throwable err,
boolean cancel) |
long |
startTime()
Gets start time for this future.
|
cancel, chain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, onDone, result, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
futureId, markNotTrackable, onNodeLeft, trackable
cancel, chain, chain, error, get, get, get, getUninterruptibly, isCancelled, isDone, listen, result
public long startTime()
startTime
in interface GridCacheFuture<R>
public long duration()
duration
in interface GridCacheFuture<R>
protected boolean onDone(@Nullable R res, @Nullable Throwable err, boolean cancel)
onDone
in class GridFutureAdapter<R>
res
- Result.err
- Error.cancel
- True
if future is being cancelled.True
if result was set by this call.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017