com.ning.http.client.ListenableFuture<V> |
![]()
AbstractListenableFuture<V>,
ApacheResponseFuture<V>,
GrizzlyResponseFuture<V>,
JDKDelegateFuture<V>,
JDKFuture<V>,
NettyResponseFuture<V>
|
Extended Future
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Abort the current processing, and propagate the Throwable to the
AsyncHandler or Future | |||||||||||
Adds a listener and executor to the ListenableFuture. | |||||||||||
Set the content that will be returned by this instance
| |||||||||||
Execute a Callable and if there is no exception, mark this Future as done and release the internal lock.
| |||||||||||
Write the
Request body
| |||||||||||
Write the
Request headers
| |||||||||||
Touch the current instance to prevent external service to times out.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Abort the current processing, and propagate the Throwable to the AsyncHandler
or Future
Adds a listener and executor to the ListenableFuture.
The listener will be passed
to the executor
for execution when the Future
's computation is
complete
.
There is no guaranteed ordering of execution of listeners, they may get called in the order they were added and they may get called out of order, but any listener added through this method is guaranteed to be called once the computation is complete.
listener | the listener to run when the computation is complete. |
---|---|
exec | the executor to run the listener in. |
NullPointerException | if the executor or listener was null. |
---|---|
RejectedExecutionException | if we tried to execute the listener immediately but the executor rejected it. |
Set the content that will be returned by this instance
v | the content that will be returned by this instance |
---|
Execute a Callable and if there is no exception, mark this Future as done and release the internal lock.
Touch the current instance to prevent external service to times out.