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 voidIt's called right after event sender instantiation (seeEventSenderFactoryBean).default boolean
-
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()It's called right after event sender instantiation (seeEventSenderFactoryBean). It might be used to initialize the sender implementation. -
destroy
default void destroy()It's called when the bean instance is destroyed, allowing to perform cleanup operations. -
shouldParticipateInTransaction
default boolean shouldParticipateInTransaction()
-