@PublicApi public class PluginTransactionEndEvent extends Object
PluginEnablingEventPluginEnabledEventPluginDisablingEventPluginDisabledEventPluginModuleDisablingEventPluginModuleDisabledEventPluginModuleEnablingEventPluginModuleEnabledEventPluginRefreshedEventPluginFrameworkStartingEventPluginFrameworkDelayedEventPluginFrameworkResumingEventPluginFrameworkStartedEventPluginFrameworkShuttingDownEventPluginFrameworkShutdownEventPluginFrameworkWarmRestartingEventPluginFrameworkWarmRestartedEventPluginUninstallingEventPluginUninstalledEventPluginInstallingEventPluginInstalledEventPluginUpgradingEventPluginUpgradedEventPluginDependentsChangedEventcom.atlassian.plugin.event.events| Constructor and Description |
|---|
PluginTransactionEndEvent(List<Object> events) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<Object> |
getEvents()
Deprecated.
This is deprecated since 5.6.0. Please migrate code to use
getUnmodifiableEvents() instead, this will be removed in the next major release of Atlassian Plugins. |
List<Object> |
getUnmodifiableEvents() |
<T> boolean |
hasAnyEventOfTypeMatching(Class<T> eventTypeClass,
Predicate<T> anyMatchEventPredicate)
Returns true if any event of type
eventTypeClass matching anyMatchEventPredicate was
part of this transaction. |
boolean |
hasAnyEventWithModuleDescriptorMatching(Predicate<ModuleDescriptor<?>> anyMatchModuleDescriptorPredicate)
Returns true if any event of type
PluginModuleEvent with PluginModuleEvent.getModule() matching
anyMatchModuleDescriptorPredicate was part of this transaction, or if any event of type PluginEvent
with PluginEvent.getPlugin() with any Plugin.getModuleDescriptors() matching
anyMatchModuleDescriptorPredicate was part of this transaction. |
int |
numberOfEvents() |
long |
threadId() |
@Deprecated public com.google.common.collect.ImmutableList<Object> getEvents()
getUnmodifiableEvents() instead, this will be removed in the next major release of Atlassian Plugins.public List<Object> getUnmodifiableEvents()
public int numberOfEvents()
public <T> boolean hasAnyEventOfTypeMatching(Class<T> eventTypeClass, Predicate<T> anyMatchEventPredicate)
eventTypeClass matching anyMatchEventPredicate was
part of this transaction.public boolean hasAnyEventWithModuleDescriptorMatching(Predicate<ModuleDescriptor<?>> anyMatchModuleDescriptorPredicate)
PluginModuleEvent with PluginModuleEvent.getModule() matching
anyMatchModuleDescriptorPredicate was part of this transaction, or if any event of type PluginEvent
with PluginEvent.getPlugin() with any Plugin.getModuleDescriptors() matching
anyMatchModuleDescriptorPredicate was part of this transaction.public long threadId()
PluginTransactionStartEvent and PluginTransactionEndEventCopyright © 2024 Atlassian. All rights reserved.