Class CancellableRunnable<T>

java.lang.Object
org.elasticsearch.common.util.concurrent.AbstractRunnable
org.elasticsearch.xpack.core.security.support.CancellableRunnable<T>
All Implemented Interfaces:
Runnable

public class CancellableRunnable<T> extends AbstractRunnable
A runnable that allows us to terminate and call the listener. We use this as a runnable can be queued and not executed for a long time or ever and this causes user requests to appear to hang. In these cases at least we can provide a response.