Class ChainMovingEvent

  • All Implemented Interfaces:
    PlanEvent, Serializable

    public class ChainMovingEvent
    extends ChainEvent
    Synchronous event sent while a chain is being moved allowing plugins and Bamboo components to react on Chain key change. While this event is being processed immutablePlanCacheService holds a lock on the original plan key. This event is dispatched and delivered while the "move plan" database transaction is still in progress, allowing the event listener to perform additional database operations in the same transaction (which will then be committed or rolled back atomically). Note that @AsynchronousPreferred annotation must not be used here
    See Also:
    Serialized Form
    • Constructor Detail

      • ChainMovingEvent

        public ChainMovingEvent​(@NotNull
                                @NotNull Object source,
                                @NotNull
                                @NotNull PlanKey originalPlanKey,
                                PlanKey newPlanKey)
        Parameters:
        source - event sender
        originalPlanKey - Chain's key before change
        newPlanKey - Chain's key after change
    • Method Detail

      • getOriginalPlanKey

        public PlanKey getOriginalPlanKey()
      • getNewPlanKey

        public PlanKey getNewPlanKey()