Class ChainMovingEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.atlassian.bamboo.event.BambooEvent
com.atlassian.bamboo.event.ChainEvent
com.atlassian.bamboo.chains.events.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:
  • Constructor Details

    • 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 Details

    • getOriginalPlanKey

      public PlanKey getOriginalPlanKey()
    • getNewPlanKey

      public PlanKey getNewPlanKey()