org.glassfish.grizzly.http.server
Class Response.SuspendedContextImpl

java.lang.Object
  extended by 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
Response.SuspendedContextImpl()
           
 
Method Summary
 CompletionHandler<Response> getCompletionHandler()
          Get the suspended Response CompletionHandler.
 SuspendStatus getSuspendStatus()
           
 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 markCancelled()
          Deprecated.  
protected  boolean markCancelled(int expectedModCount)
          Marks Response as cancelled, if expectedModCount corresponds to the current modCount.
 boolean markResumed()
          Marks Response as resumed, but doesn't resume associated FilterChainContext invocation.
 void setTimeout(long timeout, TimeUnit timeunit)
          Set the suspended Response timeout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Response.SuspendedContextImpl

public Response.SuspendedContextImpl()
Method Detail

markResumed

public boolean markResumed()
Marks Response as resumed, but doesn't resume associated FilterChainContext invocation.


markCancelled

protected boolean markCancelled(int expectedModCount)
Marks Response as cancelled, if expectedModCount corresponds to the current modCount. This method doesn't resume associated FilterChainContext invocation.


markCancelled

public void markCancelled()
Deprecated. 

Marks Response as cancelled, but doesn't resume associated FilterChainContext invocation.


getCompletionHandler

public CompletionHandler<Response> getCompletionHandler()
Description copied from interface: SuspendContext
Get the suspended Response CompletionHandler.

Specified by:
getCompletionHandler in interface SuspendContext
Returns:
the suspended Response CompletionHandler.

getTimeoutHandler

public TimeoutHandler getTimeoutHandler()
Description copied from interface: SuspendContext
Get the suspended Response TimeoutHandler.

Specified by:
getTimeoutHandler in interface SuspendContext
Returns:
the suspended Response TimeoutHandler.

getTimeout

public long getTimeout(TimeUnit timeunit)
Description copied from interface: SuspendContext
Get the suspended Response timeout. If returned value less or equal to zero - timeout is not set.

Specified by:
getTimeout in interface SuspendContext
Returns:
the suspended Response timeout. If returned value less or equal to zero - timeout is not set.

setTimeout

public void setTimeout(long timeout,
                       TimeUnit timeunit)
Description copied from interface: SuspendContext
Set the suspended Response timeout. If timeout value less or equal to zero - suspended Response won't be never timed out.

Specified by:
setTimeout in interface SuspendContext
Parameters:
timeout - the suspended Response timeout.
timeunit - timeout units.

isSuspended

public boolean isSuspended()
Description copied from interface: SuspendContext
Returns true, if the Response is suspended, or false otherwise.

Specified by:
isSuspended in interface SuspendContext
Returns:
true, if the Response is suspended, or false otherwise.

getSuspendStatus

public SuspendStatus getSuspendStatus()


Copyright © 2012 Oracle Corporation. All Rights Reserved.