Class Servlet3AsyncHttpRequest.Servlet3ExecutionContext.Servle3AsychronousResponse

    • Field Detail

      • responseLock

        private java.lang.Object responseLock
      • creatingThread

        protected java.lang.ref.WeakReference<java.lang.Thread> creatingThread
      • timeoutFuture

        protected java.util.concurrent.ScheduledFuture timeoutFuture
    • Constructor Detail

      • Servle3AsychronousResponse

        private Servle3AsychronousResponse()
    • Method Detail

      • resume

        public boolean resume​(java.lang.Object entity)
        Specified by:
        resume in interface javax.ws.rs.container.AsyncResponse
      • resume

        public boolean resume​(java.lang.Throwable exc)
        Specified by:
        resume in interface javax.ws.rs.container.AsyncResponse
      • initialRequestThreadFinished

        public void initialRequestThreadFinished()
        Description copied from interface: ResteasyAsynchronousResponse
        Callback by the initial http request thread. It is used to help simulate suspend/resume asynchronous semantics in containers that do not support asychronous HTTP. This method is a no-op in environments that support async HTTP.
        Specified by:
        initialRequestThreadFinished in interface ResteasyAsynchronousResponse
      • setTimeout

        public boolean setTimeout​(long time,
                                  java.util.concurrent.TimeUnit unit)
                           throws java.lang.IllegalStateException
        Specified by:
        setTimeout in interface javax.ws.rs.container.AsyncResponse
        Throws:
        java.lang.IllegalStateException
      • cancel

        public boolean cancel()
        Specified by:
        cancel in interface javax.ws.rs.container.AsyncResponse
      • cancel

        public boolean cancel​(int retryAfter)
        Specified by:
        cancel in interface javax.ws.rs.container.AsyncResponse
      • cancel

        public boolean cancel​(java.util.Date retryAfter)
        Specified by:
        cancel in interface javax.ws.rs.container.AsyncResponse
      • isCancelled

        public boolean isCancelled()
        Specified by:
        isCancelled in interface javax.ws.rs.container.AsyncResponse
      • isDone

        public boolean isDone()
        Specified by:
        isDone in interface javax.ws.rs.container.AsyncResponse
      • isSuspended

        public boolean isSuspended()
        Specified by:
        isSuspended in interface javax.ws.rs.container.AsyncResponse
      • onComplete

        public void onComplete​(javax.servlet.AsyncEvent asyncEvent)
                        throws java.io.IOException
        Specified by:
        onComplete in interface javax.servlet.AsyncListener
        Throws:
        java.io.IOException
      • onTimeout

        public void onTimeout​(javax.servlet.AsyncEvent asyncEvent)
                       throws java.io.IOException
        Specified by:
        onTimeout in interface javax.servlet.AsyncListener
        Throws:
        java.io.IOException
      • handleTimeout

        protected void handleTimeout()
      • onError

        public void onError​(javax.servlet.AsyncEvent asyncEvent)
                     throws java.io.IOException
        Specified by:
        onError in interface javax.servlet.AsyncListener
        Throws:
        java.io.IOException
      • onStartAsync

        public void onStartAsync​(javax.servlet.AsyncEvent asyncEvent)
                          throws java.io.IOException
        Specified by:
        onStartAsync in interface javax.servlet.AsyncListener
        Throws:
        java.io.IOException