org.apache.commons.jexl3

## Interface JexlContext.CancellationHandle

- Enclosing interface:
    JexlContext

      public static interface JexlContext.CancellationHandle

  A marker interface of the JexlContext sharing a cancelling flag.

  A script running in a thread can thus be notified through this reference of its cancellation through the context. It uses the same interpreter logic that reacts to cancellation and is an alternative to using callable() and/or interrupting script interpreter threads.

  Since:
    3.2

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `AtomicBoolean` | `getCancellation()`

- - ### Method Detail

    - #### getCancellation

          AtomicBoolean getCancellation()

      Returns:
        a cancelable boolean used by the interpreter

Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.