Class BatchingMultiEventPublisher5

  • All Implemented Interfaces:
    com.atlassian.crowd.core.event.MultiEventPublisher, com.atlassian.event.api.EventListenerRegistrar, com.atlassian.event.api.EventPublisher

    @ParametersAreNonnullByDefault
    @ReturnValuesAreNonnullByDefault
    public class BatchingMultiEventPublisher5
    extends Object
    implements com.atlassian.crowd.core.event.MultiEventPublisher
    Replacement for BatchingMultiEventPublisher due to Hibernate 2 removal.
    Since:
    7.16.0
    • Constructor Detail

      • BatchingMultiEventPublisher5

        public BatchingMultiEventPublisher5​(HibernateSessionManager5 hibernateSessionManager,
                                            org.hibernate.SessionFactory sessionFactory,
                                            com.atlassian.event.api.EventPublisher delegate)
    • Method Detail

      • publishAll

        public void publishAll​(Collection<Object> events)
        Specified by:
        publishAll in interface com.atlassian.crowd.core.event.MultiEventPublisher
      • publish

        public void publish​(Object event)
        Specified by:
        publish in interface com.atlassian.event.api.EventPublisher
      • register

        public void register​(Object listener)
        Specified by:
        register in interface com.atlassian.event.api.EventListenerRegistrar
      • unregister

        public void unregister​(Object listener)
        Specified by:
        unregister in interface com.atlassian.event.api.EventListenerRegistrar
      • unregisterAll

        public void unregisterAll()
        Specified by:
        unregisterAll in interface com.atlassian.event.api.EventListenerRegistrar