|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SuspendContext
Interface represents a context of the suspended Response.
| Method Summary | |
|---|---|
CompletionHandler<Response> |
getCompletionHandler()
Get the suspended Response CompletionHandler. |
long |
getTimeout(TimeUnit timeunit)
Get the suspended Response timeout. |
TimeoutHandler |
getTimeoutHandler()
Get the suspended Response TimeoutHandler. |
boolean |
isSuspended()
Returns true, if the Response is suspended, or
false otherwise. |
void |
setTimeout(long timeout,
TimeUnit timeunit)
Set the suspended Response timeout. |
| Method Detail |
|---|
CompletionHandler<Response> getCompletionHandler()
Response CompletionHandler.
Response CompletionHandler.TimeoutHandler getTimeoutHandler()
Response TimeoutHandler.
Response TimeoutHandler.long getTimeout(TimeUnit timeunit)
Response timeout. If returned value less or equal
to zero - timeout is not set.
Response timeout. If returned value less or equal
to zero - timeout is not set.
void setTimeout(long timeout,
TimeUnit timeunit)
Response timeout. If timeout value less or equal
to zero - suspended Response won't be never timed out.
timeout - the suspended Response timeout.timeunit - timeout units.boolean isSuspended()
Response is suspended, or
false otherwise.
Response is suspended, or
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||