Class AsyncContext

  • All Implemented Interfaces:

    
    public final class AsyncContext
    
                        

    AsyncContext provides states of async

    It is recommended that async processes check for interruptions periodically.

    Since:

    5.0.20

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Boolean isInterrupted() Returns interrupted or not.
      final static AsyncContext ofTurnOff()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AsyncContext

        AsyncContext(Boolean interrupted)
        Parameters:
        interrupted - Interruption status.
    • Method Detail

      • isInterrupted

         final Boolean isInterrupted()

        Returns interrupted or not. Async operation implementors should poll this periodically and return early when true to support cooperative cancellation.

        Returns:

        Boolean Interrupted or not

        Since:

        5.0.20