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 Details

    • isCancelled

      public boolean isCancelled()
      Returns true if cancellation has been requested, false otherwise.
    • getReason

      public Optional<String> getReason()
      If cancellation has been requested (i.e. if isCancelled() is true), returns the reason of the cancellation as provided by the user. Otherwise, an empty Optional is returned.