Interface EventPublisher
-
- All Superinterfaces:
Distributable
- All Known Subinterfaces:
ProcessStateService
- All Known Implementing Classes:
AbstractProcessStateService
,DefaultProcessStateService
public interface EventPublisher extends Distributable
Generic, lightweight API for publishing events. Implementations could include delegating to Spring Application Context, writing to Kafka, JMS, AMQP, or other.- Author:
- Kelly Tisdell (ktisdell)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
publishEvent(SearchIndexProcessEvent event)
Lightweight interface to publish an event.-
Methods inherited from interface com.broadleafcommerce.search.index.core.Distributable
isDistributed
-
-
-
-
Method Detail
-
publishEvent
void publishEvent(SearchIndexProcessEvent event)
Lightweight interface to publish an event. This component will delegate directly to Spring if it's not distributable. Otherwise, it will publish to whatever distributed event system is available (e.g. Kafka, JMS, RabbitMQ, Ignite Events, etc.) In the case of distributed events, the system should delegate to Spring on arrival of the event.- Parameters:
event
- the event to publish
-
-