Class GridCacheFutureAdapter<R>

    • Constructor Detail

      • GridCacheFutureAdapter

        protected GridCacheFutureAdapter()
        Default constructor.
    • Method Detail

      • startTime

        public long startTime()
        Gets start time for this future.
        Specified by:
        startTime in interface GridCacheFuture<R>
        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:
        duration in interface GridCacheFuture<R>
        Returns:
        Time in milliseconds this future has taken to execute.
      • onDone

        protected boolean onDone​(@Nullable
                                 R res,
                                 @Nullable
                                 @Nullable Throwable err,
                                 boolean cancel)
        Overrides:
        onDone in class GridFutureAdapter<R>
        Parameters:
        res - Result.
        err - Error.
        cancel - True if future is being cancelled.
        Returns:
        True if result was set by this call.