public final class CancellationFlag extends Object
| Constructor and Description |
|---|
CancellationFlag()
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean setFlag)
Attempt to cancel the corresponding invocation.
|
boolean |
isCancelFlagSet()
Determine if the cancel flag was set.
|
boolean |
isCancelled()
Determine if the request was cancelled before it could complete.
|
boolean |
runIfNotCancelled()
Attempt to determine whether the invocation should proceed or whether it should be cancelled.
|
public boolean cancel(boolean setFlag)
setFlag - true to set the EJB context cancellation flag (or equivalent), false otherwisetrue if the invocation was definitely cancelled, or false if it was not cancelled or it could not be determined if it was cancelledpublic boolean runIfNotCancelled()
true if the invocation should proceed, or false if it was cancelledpublic boolean isCancelFlagSet()
true if the flag was set, false otherwisepublic boolean isCancelled()
true if the request was cancelled, false otherwiseCopyright © 2020 JBoss by Red Hat. All rights reserved.