Interface ResteasyAsynchronousResponse

All Superinterfaces:
jakarta.ws.rs.container.AsyncResponse
All Known Implementing Classes:
AbstractAsynchronousResponse, SynchronousExecutionContext.SynchronousAsynchronousResponse

public interface ResteasyAsynchronousResponse extends jakarta.ws.rs.container.AsyncResponse
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Summary

    Fields inherited from interface jakarta.ws.rs.container.AsyncResponse

    NO_TIMEOUT
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    Invoked when the asynchronous processing of the request has ended, either after the response has been written, after a failure or because the client connection was closed.
     
     
    jakarta.ws.rs.container.ContainerResponseFilter[]
     
    jakarta.ws.rs.ext.WriterInterceptor[]
     
    void
    Callback by the initial http request thread.
    void
    setAnnotations(Annotation[] annotations)
     
    void
    setResponseFilters(jakarta.ws.rs.container.ContainerResponseFilter[] responseFilters)
     
    void
    setWriterInterceptors(jakarta.ws.rs.ext.WriterInterceptor[] writerInterceptors)
     

    Methods inherited from interface jakarta.ws.rs.container.AsyncResponse

    cancel, cancel, cancel, isCancelled, isDone, isSuspended, register, register, register, register, resume, resume, setTimeout, setTimeoutHandler
  • Method Details

    • initialRequestThreadFinished

      void initialRequestThreadFinished()
      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.
    • getResponseFilters

      jakarta.ws.rs.container.ContainerResponseFilter[] getResponseFilters()
    • setResponseFilters

      void setResponseFilters(jakarta.ws.rs.container.ContainerResponseFilter[] responseFilters)
    • getWriterInterceptors

      jakarta.ws.rs.ext.WriterInterceptor[] getWriterInterceptors()
    • setWriterInterceptors

      void setWriterInterceptors(jakarta.ws.rs.ext.WriterInterceptor[] writerInterceptors)
    • getAsyncWriterInterceptors

      AsyncWriterInterceptor[] getAsyncWriterInterceptors()
    • getAnnotations

      Annotation[] getAnnotations()
    • setAnnotations

      void setAnnotations(Annotation[] annotations)
    • complete

      void complete()
    • completionCallbacks

      void completionCallbacks(Throwable throwable)
      Invoked when the asynchronous processing of the request has ended, either after the response has been written, after a failure or because the client connection was closed. Implementations must invoke this when the request ends, including when the connection is closed, and invoking it more than once must have no effect.

      This notifies the registered completion callbacks and completes the request, which notifies the RequestListeners. Completing the request is provided by org.jboss.resteasy.core.AbstractAsynchronousResponse; implementations which do not extend it do not notify the RequestListeners.

      Parameters:
      throwable - the failure which ended the request or null if the request completed successfully