Class Cancellation
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.file.cancel.Cancellation
-
public class Cancellation extends Object
The result of a check for a pending cancellation request.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>getReason()If cancellation has been requested (i.e.booleanisCancelled()Returnstrueif cancellation has been requested,falseotherwise.
-
-
-
Method Detail
-
isCancelled
public boolean isCancelled()
Returnstrueif cancellation has been requested,falseotherwise.
-
getReason
public Optional<String> getReason()
If cancellation has been requested (i.e. ifisCancelled()istrue), returns the reason of the cancellation as provided by the user. Otherwise, an emptyOptionalis returned.
-
-