Package org.alfresco.repo.event2
Class DirectEventSender
java.lang.Object
org.alfresco.repo.event2.DirectEventSender
- All Implemented Interfaces:
EventSender,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
EnqueuingEventSender
public class DirectEventSender
extends Object
implements EventSender, org.springframework.beans.factory.InitializingBean
Sends a message to a destination in the current thread.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAccepts a callback function creating an event and sends this event to specified destination.voidvoidsetEvent2MessageProducer(Event2MessageProducer event2MessageProducer)
-
Field Details
-
event2MessageProducer
-
-
Constructor Details
-
DirectEventSender
public DirectEventSender()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
setEvent2MessageProducer
-
accept
Description copied from interface:EventSenderAccepts a callback function creating an event and sends this event to specified destination.- Specified by:
acceptin interfaceEventSender- Parameters:
eventProducer- - callback function that creates an event
-