Interface SuspendContext
-
- All Known Implementing Classes:
Response.SuspendedContextImpl
public interface SuspendContextInterface represents a context of the suspendedResponse.- Author:
- Alexey Stashok
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletionHandler<Response>getCompletionHandler()Get the suspendedResponseCompletionHandler.longgetTimeout(java.util.concurrent.TimeUnit timeunit)Get the suspendedResponsetimeout.TimeoutHandlergetTimeoutHandler()Get the suspendedResponseTimeoutHandler.booleanisSuspended()Returns true, if theResponseis suspended, or false otherwise.voidsetTimeout(long timeout, java.util.concurrent.TimeUnit timeunit)Set the suspendedResponsetimeout.
-
-
-
Method Detail
-
getCompletionHandler
CompletionHandler<Response> getCompletionHandler()
Get the suspendedResponseCompletionHandler.- Returns:
- the suspended
ResponseCompletionHandler.
-
getTimeoutHandler
TimeoutHandler getTimeoutHandler()
Get the suspendedResponseTimeoutHandler.- Returns:
- the suspended
ResponseTimeoutHandler.
-
getTimeout
long getTimeout(java.util.concurrent.TimeUnit timeunit)
Get the suspendedResponsetimeout. If returned value less or equal to zero - timeout is not set.- Returns:
- the suspended
Responsetimeout. If returned value less or equal to zero - timeout is not set.
-
setTimeout
void setTimeout(long timeout, java.util.concurrent.TimeUnit timeunit)Set the suspendedResponsetimeout. If timeout value less or equal to zero - suspendedResponsewon't be never timed out.- Parameters:
timeout- the suspendedResponsetimeout.timeunit- timeout units.
-
-