Class CancellableThreads

java.lang.Object
org.elasticsearch.common.util.CancellableThreads

public class CancellableThreads
extends java.lang.Object
A utility class for multi threaded operation that needs to be cancellable via interrupts. Every cancellable operation should be executed via execute(Interruptible), which will capture the executing thread and make sure it is interrupted in the case of cancellation. Cancellation policy: This class does not support external interruption via Thread#interrupt(). Always use #cancel() instead.