Class RemoteRuleContext

  • public class RemoteRuleContext
    extends Object
    This holds information about rule states.
    • Method Detail

      • isCancelled

        public boolean isCancelled()
        Whether action has been cancelled.
      • getCancelReason

        public Throwable getCancelReason()
        Get Throwable which caused action to cancel.
      • cancel

        public void cancel​(Throwable reason)
        Call when action has been cancelled.
      • tryStart

        public boolean tryStart()
        Call Try Start to set the guard.
      • onCancellation

        public void onCancellation​(java.util.function.Consumer<Throwable> cancelCallback)
        Action has been cancelled.