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 voidIt's called right after event sender instantiation (seeEventSenderFactoryBean).
-
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.
-