|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SettableFutureHandler<V>
Handler for a settable future that allows us to wrap calls to set and setException with whatever wrapping logic we need, like transferring request context information.
| Method Summary | |
|---|---|
com.google.common.util.concurrent.SettableFuture<V> |
getFuture()
|
boolean |
set(V value)
Sets the value of this future. |
boolean |
setException(java.lang.Throwable throwable)
Sets the future to having failed with the given exception. |
| Method Detail |
|---|
boolean set(@Nullable
V value)
true if
the value was successfully set, or false if the future has already
been set or cancelled.
value - the value the future should hold.
boolean setException(java.lang.Throwable throwable)
ExecutionException and thrown from the get methods. This method will return true if the exception was
successfully set, or false if the future has already been set or
cancelled.
throwable - the exception the future should hold.
com.google.common.util.concurrent.SettableFuture<V> getFuture()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||