Package org.glassfish.grizzly.impl
Interface FutureImpl<R>
-
- All Superinterfaces:
Cacheable,Future<R>,GrizzlyFuture<R>
- All Known Implementing Classes:
ReadyFutureImpl,SafeFutureImpl,UnsafeFutureImpl
public interface FutureImpl<R> extends GrizzlyFuture<R>
Futureinterface, which has full control over the state.- Author:
- Alexey Stashok
- See Also:
Future
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfailure(Throwable failure)Notify about the failure, occurred during asynchronous operation execution.RgetResult()Get current result value without any blocking.voidresult(R result)Set the result value and notify about operation completion.-
Methods inherited from interface org.glassfish.grizzly.GrizzlyFuture
addCompletionHandler, markForRecycle, recycle
-
-
-
-
Method Detail
-
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-
-
-