Class AcceptingBehavior


  • public final class AcceptingBehavior
    extends Object
    When accepting a message, a Subscriber can decide if it the delivery to subsequent Subscribers should continue or if the delivery is preempted.
    See Also:
    EventMaid Documentation
    • Field Detail

      • MESSAGE_ACCEPTED

        public static final AcceptingBehavior MESSAGE_ACCEPTED
        The message was accepted and the delivery continues.
      • MESSAGE_ACCEPTED_AND_STOP_DELIVERY

        public static final AcceptingBehavior MESSAGE_ACCEPTED_AND_STOP_DELIVERY
        The message was accepted and the delivery can stop early.
    • Constructor Detail

      • AcceptingBehavior

        public AcceptingBehavior()
    • Method Detail

      • acceptingBehavior

        public static AcceptingBehavior acceptingBehavior​(boolean continueDelivery)
        Factory method to create a new AcceptingBehavior.
        Parameters:
        continueDelivery - true continues the delivery, false preempts it
        Returns:
        a new AcceptingBehavior
      • continueDelivery

        public boolean continueDelivery()