JexlContext.CancellationHandle (Apache Commons JEXL 3.6.3 API)
Description: declaration: package: org.apache.commons.jexl3, interface: JexlContext, interface: CancellationHandle

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()`
  Gets a cancelable boolean used by the interpreter.

- ## Method Details

  - ### getCancellation

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