Class PluginTransactionEndEvent
java.lang.Object
com.atlassian.plugin.event.events.PluginTransactionEndEvent
Event send at the end of an action wrapping existing plugin events:
PluginEnablingEventPluginEnabledEventPluginDisablingEventPluginDisabledEventPluginModuleDisablingEventPluginModuleDisabledEventPluginModuleEnablingEventPluginModuleEnabledEventPluginRefreshedEventPluginFrameworkStartingEventPluginFrameworkDelayedEventPluginFrameworkResumingEventPluginFrameworkStartedEventPluginFrameworkShuttingDownEventPluginFrameworkShutdownEventPluginFrameworkWarmRestartingEventPluginFrameworkWarmRestartedEventPluginUninstallingEventPluginUninstalledEventPluginInstallingEventPluginInstalledEventPluginUpgradingEventPluginUpgradedEventPluginDependentsChangedEvent
- Since:
- 5.1.3
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> booleanhasAnyEventOfTypeMatching(Class<T> eventTypeClass, Predicate<T> anyMatchEventPredicate) Returns true if any event of typeeventTypeClassmatchinganyMatchEventPredicatewas part of this transaction.booleanhasAnyEventWithModuleDescriptorMatching(Predicate<ModuleDescriptor<?>> anyMatchModuleDescriptorPredicate) Returns true if any event of typePluginModuleEventwithPluginModuleEvent.getModule()matchinganyMatchModuleDescriptorPredicatewas part of this transaction, or if any event of typePluginEventwithPluginEvent.getPlugin()with anyPlugin.getModuleDescriptors()matchinganyMatchModuleDescriptorPredicatewas part of this transaction.intlongthreadId()
-
Constructor Details
-
PluginTransactionEndEvent
-
-
Method Details
-
getUnmodifiableEvents
- Returns:
- an unmodifiable list of events.
- Since:
- 5.6.0.
-
numberOfEvents
public int numberOfEvents() -
hasAnyEventOfTypeMatching
public <T> boolean hasAnyEventOfTypeMatching(Class<T> eventTypeClass, Predicate<T> anyMatchEventPredicate) Returns true if any event of typeeventTypeClassmatchinganyMatchEventPredicatewas part of this transaction. -
hasAnyEventWithModuleDescriptorMatching
public boolean hasAnyEventWithModuleDescriptorMatching(Predicate<ModuleDescriptor<?>> anyMatchModuleDescriptorPredicate) Returns true if any event of typePluginModuleEventwithPluginModuleEvent.getModule()matchinganyMatchModuleDescriptorPredicatewas part of this transaction, or if any event of typePluginEventwithPluginEvent.getPlugin()with anyPlugin.getModuleDescriptors()matchinganyMatchModuleDescriptorPredicatewas part of this transaction. -
threadId
public long threadId()- Returns:
- thread ID of the thread sending this event; can be used to match
PluginTransactionStartEventandPluginTransactionEndEvent
-