Class ChainMovingEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- com.atlassian.event.Event
-
- 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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.event.ChainEvent
planKey
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ChainMovingEvent(@NotNull Object source, @NotNull PlanKey originalPlanKey, PlanKey newPlanKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlanKey
getNewPlanKey()
PlanKey
getOriginalPlanKey()
-
Methods inherited from class com.atlassian.bamboo.event.ChainEvent
getPlanKey, toString
-
Methods inherited from class java.util.EventObject
getSource
-
-