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 org.glassfish.grizzly.CompletionHandler<Response>getCompletionHandler()Get the suspendedResponseCompletionHandler.longgetTimeout(TimeUnit timeunit)Get the suspendedResponsetimeout.TimeoutHandlergetTimeoutHandler()Get the suspendedResponseTimeoutHandler.booleanisSuspended()Returns true, if theResponseis suspended, or false otherwise.voidsetTimeout(long timeout, TimeUnit timeunit)Set the suspendedResponsetimeout.
-
-
-
Method Detail
-
getCompletionHandler
org.glassfish.grizzly.CompletionHandler<Response> getCompletionHandler()
Get the suspendedResponseCompletionHandler.- Returns:
- the suspended
ResponseCompletionHandler.
-
getTimeoutHandler
TimeoutHandler getTimeoutHandler()
Get the suspendedResponseTimeoutHandler.- Returns:
- the suspended
ResponseTimeoutHandler.
-
getTimeout
long getTimeout(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, 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.
-
-