Interface SuspendContext

    • Method Detail

      • getCompletionHandler

        org.glassfish.grizzly.CompletionHandler<Response> getCompletionHandler()
        Get the suspended Response CompletionHandler.
        Returns:
        the suspended Response CompletionHandler.
      • getTimeout

        long getTimeout​(TimeUnit timeunit)
        Get the suspended Response timeout. If returned value less or equal to zero - timeout is not set.
        Returns:
        the suspended Response timeout. If returned value less or equal to zero - timeout is not set.
      • setTimeout

        void setTimeout​(long timeout,
                        TimeUnit timeunit)
        Set the suspended Response timeout. If timeout value less or equal to zero - suspended Response won't be never timed out.
        Parameters:
        timeout - the suspended Response timeout.
        timeunit - timeout units.
      • isSuspended

        boolean isSuspended()
        Returns true, if the Response is suspended, or false otherwise.
        Returns:
        true, if the Response is suspended, or false otherwise.