@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() |
<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() |
public com.google.common.collect.ImmutableList<Object> getEvents()
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 © 2020 Atlassian. All rights reserved.