public interface ResponseMessageFuture
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancel the current request
|
ResponseMessage |
get()
Wait synchronously for the response
|
ResponseMessage |
get(long timeout)
Wait synchronously for the response.
|
boolean |
isCancelled()
Is the request cancelled ?
|
boolean |
isDone()
Is the request finished ?
|
boolean cancel()
ResponseMessage get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.util.concurrent.TimeoutExceptionResponseMessage get(long timeout) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
timeout) has elapsed before the response is received.
If timeout is zero, however, then the method simply waits until the response
is received or the default transport timeout has elapsed.timeout - the maximum time to wait in milliseconds.java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.util.concurrent.TimeoutExceptionboolean isCancelled()
boolean isDone()