Package org.glassfish.grizzly.impl
Interface FutureImpl<R>
- All Superinterfaces:
Cacheable,Future<R>,GrizzlyFuture<R>
- All Known Implementing Classes:
ReadyFutureImpl,SafeFutureImpl,UnsafeFutureImpl
Future interface, which has full control over the state.- Author:
- Alexey Stashok
- See Also:
-
Method Summary
Methods inherited from interface org.glassfish.grizzly.GrizzlyFuture
addCompletionHandler, markForRecycle, recycle
-
Method Details
-
getResult
R getResult()Get current result value without any blocking.- Returns:
- current result value without any blocking.
-
result
Set the result value and notify about operation completion.- Parameters:
result- the result value
-
failure
Notify about the failure, occurred during asynchronous operation execution.- Parameters:
failure-
-