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 Details

    • SuspendedContextImpl

      public SuspendedContextImpl()
  • Method Details

    • 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

      @Deprecated public void markCancelled()
      Deprecated.
      Marks Response as cancelled, but doesn't resume associated FilterChainContext invocation.
    • getCompletionHandler

      public org.glassfish.grizzly.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()