Package org.alfresco.repo.event2
Interface EventSender
- All Known Implementing Classes:
DirectEventSender,EnqueuingEventSender
public interface EventSender
Interface representing an asynchronous event sender.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAccepts a callback function creating an event and sends this event to specified destination.default voiddestroy()It's called when the bean instance is destroyed, allowing to perform cleanup operations.default voidCalled byEventSenderFactoryBeanduringLifecycle.start().default booleandefault voidstop()Called byEventSenderFactoryBeanduringLifecycle.stop().
-
Method Details
-
accept
Accepts a callback function creating an event and sends this event to specified destination.- Parameters:
eventProducer- - callback function that creates an event
-
initialize
default void initialize()Called byEventSenderFactoryBeanduringLifecycle.start(). It might be used to initialize the sender implementation. -
stop
default void stop()Called byEventSenderFactoryBeanduringLifecycle.stop(). -
destroy
default void destroy()It's called when the bean instance is destroyed, allowing to perform cleanup operations. -
shouldParticipateInTransaction
default boolean shouldParticipateInTransaction()
-