|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ning.http.client.listenable.AbstractListenableFuture<V>
com.ning.http.client.providers.grizzly.GrizzlyResponseFuture<V>
public class GrizzlyResponseFuture<V>
AbstractListenableFuture implementation adaptation of Grizzly's
FutureImpl.
| Method Summary | |
|---|---|
void |
abort(Throwable t)
Abort the current processing, and propagate the Throwable to the AsyncHandler or Future |
boolean |
cancel(boolean mayInterruptIfRunning)
|
void |
content(V v)
Set the content that will be returned by this instance |
void |
done(Callable callable)
Execute a Callable 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)
Write the Request body |
boolean |
getAndSetWriteHeaders(boolean writeHeaders)
Write the Request headers |
ProxyServer |
getProxy()
|
boolean |
isCancelled()
|
boolean |
isDone()
|
void |
touch()
Touch the current instance to prevent external service to times out. |
| Methods inherited from class com.ning.http.client.listenable.AbstractListenableFuture |
|---|
addListener, done |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void done(Callable callable)
ListenableFutureCallable and if there is no exception, mark this Future as done and release the internal lock.
public void abort(Throwable t)
ListenableFutureThrowable to the AsyncHandler or Future
public void content(V v)
ListenableFuture
v - the content that will be returned by this instancepublic void touch()
ListenableFuture
public boolean getAndSetWriteHeaders(boolean writeHeaders)
ListenableFutureRequest headers
public boolean getAndSetWriteBody(boolean writeBody)
ListenableFutureRequest body
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
public boolean isDone()
public V get()
throws InterruptedException,
ExecutionException
InterruptedException
ExecutionException
public V get(long timeout,
TimeUnit unit)
throws InterruptedException,
ExecutionException,
TimeoutException
InterruptedException
ExecutionException
TimeoutExceptionpublic ProxyServer getProxy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||