Interface FutureImpl<R>

All Superinterfaces:
Cacheable, Future<R>, GrizzlyFuture<R>
All Known Implementing Classes:
ReadyFutureImpl, SafeFutureImpl, UnsafeFutureImpl

public interface FutureImpl<R> extends GrizzlyFuture<R>
Future interface, which has full control over the state.
Author:
Alexey Stashok
See Also:
  • Method Details

    • getResult

      R getResult()
      Get current result value without any blocking.
      Returns:
      current result value without any blocking.
    • result

      void result(R result)
      Set the result value and notify about operation completion.
      Parameters:
      result - the result value
    • failure

      void failure(Throwable failure)
      Notify about the failure, occurred during asynchronous operation execution.
      Parameters:
      failure -