Class Cancellation
java.lang.Object
org.apache.jackrabbit.oak.segment.file.cancel.Cancellation
The result of a check for a pending cancellation request.
-
Method Summary
Modifier and TypeMethodDescriptionIf cancellation has been requested (i.e.boolean
Returnstrue
if cancellation has been requested,false
otherwise.
-
Method Details
-
isCancelled
public boolean isCancelled()Returnstrue
if cancellation has been requested,false
otherwise. -
getReason
If cancellation has been requested (i.e. ifisCancelled()
istrue
), returns the reason of the cancellation as provided by the user. Otherwise, an emptyOptional
is returned.
-