Interface EventPublisher
- All Superinterfaces:
Distributable
- All Known Subinterfaces:
ProcessStateService
- All Known Implementing Classes:
AbstractProcessStateService
,DefaultProcessStateService
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
Modifier and TypeMethodDescriptionvoid
Lightweight interface to publish an event.Methods inherited from interface com.broadleafcommerce.search.index.core.Distributable
isDistributed
-
Method Details
-
publishEvent
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
-