public interface Cancellable
| Modifier and Type | Method and Description |
|---|---|
@NonNull AtomicBoolean |
getCancellationState()
Gets an
AtomicBoolean holding the cancellation state of the event |
default boolean |
isCancelled()
Returns true if the event is currently cancelled.
|
default boolean |
isNotCancelled()
Returns true if the event is not currently cancelled.
|
default boolean |
setCancelled(boolean cancelled)
Sets the cancellation state of the event.
|
@NonNull AtomicBoolean getCancellationState()
AtomicBoolean holding the cancellation state of the eventdefault boolean isCancelled()
default boolean isNotCancelled()
default boolean setCancelled(boolean cancelled)
cancelled - the new state