Class PluginTransactionEndEvent

java.lang.Object
com.atlassian.plugin.event.events.PluginTransactionEndEvent

@PublicApi public class PluginTransactionEndEvent extends Object
Since:
5.1.3
See Also:
  • Constructor Details

    • PluginTransactionEndEvent

      public PluginTransactionEndEvent(List<Object> events)
  • Method Details

    • getUnmodifiableEvents

      public List<Object> 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 type eventTypeClass matching anyMatchEventPredicate was part of this transaction.
    • hasAnyEventWithModuleDescriptorMatching

      public 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.
    • threadId

      public long threadId()
      Returns:
      thread ID of the thread sending this event; can be used to match PluginTransactionStartEvent and PluginTransactionEndEvent