@Internal public class JiraPluginCacheResetEvent extends Object
PluginTransactionEndEvent
.
However, this was unintentionally an API-breaking change, as it did not respect the existing contract between plugins
and Jira Core. In said contract, plugins expect up-to-date caches upon receipt of a PluginEnabledEvent
.
Since 8.2.4/8.3.0 the contract is back and this event is also triggered by PluginEnabledEvent
.
JiraPluginCacheResetEvent
is sent in a no-cache-replication context.
See ReplicationPauserManager
Constructor and Description |
---|
JiraPluginCacheResetEvent(com.atlassian.plugin.event.events.PluginTransactionEndEvent pluginTransactionEndEvent) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<Object> |
getEvents()
See
PluginTransactionEndEvent.getEvents() |
<T> boolean |
hasAnyEventOfTypeMatching(Class<T> eventTypeClass,
java.util.function.Predicate<T> anyMatchEventPredicate)
See
PluginTransactionEndEvent.hasAnyEventOfTypeMatching(Class, Predicate) |
boolean |
hasAnyEventWithModuleDescriptorMatching(java.util.function.Predicate<com.atlassian.plugin.ModuleDescriptor<?>> anyMatchModuleDescriptorPredicate)
See
PluginTransactionEndEvent.hasAnyEventWithModuleDescriptorMatching(Predicate) |
int |
numberOfEvents()
See
PluginTransactionEndEvent.numberOfEvents() |
public JiraPluginCacheResetEvent(com.atlassian.plugin.event.events.PluginTransactionEndEvent pluginTransactionEndEvent)
public com.google.common.collect.ImmutableList<Object> getEvents()
PluginTransactionEndEvent.getEvents()
public int numberOfEvents()
PluginTransactionEndEvent.numberOfEvents()
public <T> boolean hasAnyEventOfTypeMatching(Class<T> eventTypeClass, java.util.function.Predicate<T> anyMatchEventPredicate)
PluginTransactionEndEvent.hasAnyEventOfTypeMatching(Class, Predicate)
public boolean hasAnyEventWithModuleDescriptorMatching(java.util.function.Predicate<com.atlassian.plugin.ModuleDescriptor<?>> anyMatchModuleDescriptorPredicate)
PluginTransactionEndEvent.hasAnyEventWithModuleDescriptorMatching(Predicate)
Copyright © 2002-2022 Atlassian. All Rights Reserved.