Package 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

  Modifier and Type
  Method
  Description
  `AtomicBoolean`
  `getCancellation()`

- ## Method Details

  - ### getCancellation

    AtomicBoolean getCancellation()
    Returns:
      a cancelable boolean used by the interpreter