public interface Cancellable
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
If the object is cancellable, cancels the object, implementors may throw
an EventCancellationException if the object is not actually cancellable.
|
boolean |
isCancellable()
Get whether this is actually cancellable
|
boolean |
isCancelled()
Get whether this is cancelled
|
boolean isCancellable()
boolean isCancelled()
void cancel()
throws CancellationException
CancellationException - (optional) may be thrown if the object is
not actually cancellable. Contractually, this object may not throw
the exception if isCancellable() returns true.