Interface ServletHttpRequest.AsyncExecution

Enclosing interface:
ServletHttpRequest<N,B>

public static interface ServletHttpRequest.AsyncExecution
Async execution.
Since:
4.0.0
Author:
Denis Stepanov
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Method should be called after the async processing is completed.
    default void
    Registers what to run if the container ends the asynchronous execution itself, on a timeout or an I/O error, before complete() has been called.
  • Method Details

    • complete

      void complete()
      Method should be called after the async processing is completed.
    • onEndedByContainer

      default void onEndedByContainer(Runnable hook)
      Registers what to run if the container ends the asynchronous execution itself, on a timeout or an I/O error, before complete() has been called. The hook runs at most once, and a subsequent complete() is then expected to be tolerated. The default registers nothing, for a runtime whose container never ends an execution on its own.
      Parameters:
      hook - What to run when the container ends the execution
      Since:
      6.2.0