public class DelayedCancellable extends java.lang.Object implements Cancellable
Cancellable
which serves as a placeholder until the "real" Cancellable
is available.IGNORE_CANCEL
Constructor and Description |
---|
DelayedCancellable() |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Sends a hint to the producer of the associated asynchronous execution that the consumer related to this
Cancellable is not interested in the outcome of the execution. |
void |
delayedCancellable(Cancellable delayedCancellable)
Set the delayed
Cancellable . |
public final void delayedCancellable(Cancellable delayedCancellable)
Cancellable
. This method can only be called a single time and
subsequent calls will result in cancel()
being call on delayedCancellable
.delayedCancellable
- The delayed Cancellable
.public void cancel()
Cancellable
Cancellable
is not interested in the outcome of the execution.cancel
in interface Cancellable