public class GrizzlyResponseFuture<V> extends AbstractListenableFuture<V>
AbstractListenableFuture implementation adaptation of Grizzly's
FutureImpl.ListenableFuture.CompletedFailure<T>| Modifier and Type | Method and Description |
|---|---|
void |
abort(Throwable t)
|
boolean |
cancel(boolean mayInterruptIfRunning) |
void |
content(V v) |
void |
done()
Terminate and if there is no exception, mark this Future as done and release the internal lock.
|
V |
get() |
V |
get(long timeout,
TimeUnit unit) |
boolean |
getAndSetWriteBody(boolean writeBody) |
boolean |
getAndSetWriteHeaders(boolean writeHeaders) |
ProxyServer |
getProxy() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
touch()
Touch the current instance to prevent external service to times out.
|
addListener, runListenerspublic void done()
ListenableFuturepublic void abort(Throwable t)
ListenableFuturepublic void content(V v)
public void touch()
ListenableFuturepublic boolean getAndSetWriteHeaders(boolean writeHeaders)
public boolean getAndSetWriteBody(boolean writeBody)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
public boolean isDone()
public V get() throws InterruptedException, ExecutionException
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
public ProxyServer getProxy()
Copyright © 2015. All Rights Reserved.