Class Response.SuspendedContextImpl
- java.lang.Object
-
- org.glassfish.grizzly.http.server.Response.SuspendedContextImpl
-
- All Implemented Interfaces:
SuspendContext
- Enclosing class:
- Response
public final class Response.SuspendedContextImpl extends Object implements SuspendContext
-
-
Constructor Summary
Constructors Constructor Description SuspendedContextImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.glassfish.grizzly.CompletionHandler<Response>getCompletionHandler()Get the suspendedResponseCompletionHandler.SuspendStatusgetSuspendStatus()longgetTimeout(TimeUnit timeunit)Get the suspendedResponsetimeout.TimeoutHandlergetTimeoutHandler()Get the suspendedResponseTimeoutHandler.booleanisSuspended()Returns true, if theResponseis suspended, or false otherwise.voidmarkCancelled()Deprecated.protected booleanmarkCancelled(int expectedModCount)MarksResponseas cancelled, if expectedModCount corresponds to the current modCount.booleanmarkResumed()MarksResponseas resumed, but doesn't resume associatedFilterChainContextinvocation.voidsetTimeout(long timeout, TimeUnit timeunit)Set the suspendedResponsetimeout.
-
-
-
Method Detail
-
markResumed
public boolean markResumed()
MarksResponseas resumed, but doesn't resume associatedFilterChainContextinvocation.
-
markCancelled
protected boolean markCancelled(int expectedModCount)
MarksResponseas cancelled, if expectedModCount corresponds to the current modCount. This method doesn't resume associatedFilterChainContextinvocation.
-
markCancelled
@Deprecated public void markCancelled()
Deprecated.MarksResponseas cancelled, but doesn't resume associatedFilterChainContextinvocation.
-
getCompletionHandler
public org.glassfish.grizzly.CompletionHandler<Response> getCompletionHandler()
Description copied from interface:SuspendContextGet the suspendedResponseCompletionHandler.- Specified by:
getCompletionHandlerin interfaceSuspendContext- Returns:
- the suspended
ResponseCompletionHandler.
-
getTimeoutHandler
public TimeoutHandler getTimeoutHandler()
Description copied from interface:SuspendContextGet the suspendedResponseTimeoutHandler.- Specified by:
getTimeoutHandlerin interfaceSuspendContext- Returns:
- the suspended
ResponseTimeoutHandler.
-
getTimeout
public long getTimeout(TimeUnit timeunit)
Description copied from interface:SuspendContextGet the suspendedResponsetimeout. If returned value less or equal to zero - timeout is not set.- Specified by:
getTimeoutin interfaceSuspendContext- Returns:
- the suspended
Responsetimeout. If returned value less or equal to zero - timeout is not set.
-
setTimeout
public void setTimeout(long timeout, TimeUnit timeunit)Description copied from interface:SuspendContextSet the suspendedResponsetimeout. If timeout value less or equal to zero - suspendedResponsewon't be never timed out.- Specified by:
setTimeoutin interfaceSuspendContext- Parameters:
timeout- the suspendedResponsetimeout.timeunit- timeout units.
-
isSuspended
public boolean isSuspended()
Description copied from interface:SuspendContextReturns true, if theResponseis suspended, or false otherwise.- Specified by:
isSuspendedin interfaceSuspendContext- Returns:
- true, if the
Responseis suspended, or false otherwise.
-
getSuspendStatus
public SuspendStatus getSuspendStatus()
-
-