|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.httpclient.base.concurrent.DefaultSettableFutureHandler<V>
public final class DefaultSettableFutureHandler<V>
Simple handler that just creates and wraps a normal future
| Constructor Summary | |
|---|---|
DefaultSettableFutureHandler()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSettableFutureHandler()
| Method Detail |
|---|
public boolean set(@Nullable
V value)
SettableFutureHandlertrue if
the value was successfully set, or false if the future has already
been set or cancelled.
set in interface SettableFutureHandler<V>value - the value the future should hold.
public boolean setException(java.lang.Throwable throwable)
SettableFutureHandlerExecutionException 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.
setException in interface SettableFutureHandler<V>throwable - the exception the future should hold.
public com.google.common.util.concurrent.SettableFuture<V> getFuture()
getFuture in interface SettableFutureHandler<V>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||