|Constructor and Description|
Create a new instance.
|Modifier and Type||Method and Description|
Sends a hint to the producer of the associated asynchronous execution that the consumer related to this
public ThreadInterruptingCancellable(java.lang.Thread threadToInterrupt)
threadToInterrupt- The thread
public void cancel()
Cancellableis not interested in the outcome of the execution.
public void setDone()
public void setDone(java.lang.Throwable cause)
Cancellableis done and future calls to
cancel()should be NOOPs.
cause- The operation failed, and this is the
Throwablethat indicates why. If this is
Thread.interrupted()will be called for the current thread to clear the interrupt status.