Package io.automatiko.engine.api.event
Interface EventPublisher
-
public interface EventPublisherResponsible for publishing events for consumption to the "outside world" Depending on the implementation it can be to push over the wire or use an in memory queue to notify other parties about particular events. In case any filtering needs to take place, this is where it should happen.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpublish(DataEvent<?> event)Publishes individual eventvoidpublish(Collection<DataEvent<?>> events)Publish collection of events.
-
-
-
Method Detail
-
publish
void publish(DataEvent<?> event)
Publishes individual event- Parameters:
event- event to be published
-
publish
void publish(Collection<DataEvent<?>> events)
Publish collection of events. It's up to implementation to publish them individually or as complete collection.- Parameters:
events- events to be published
-
-