public interface EventPublisher
Responsible 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
Modifier and TypeMethodDescriptionvoidPublishes individual eventvoidpublish(Collection<DataEvent<?>> events) Publish collection of events.
-
Method Details
-
publish
Publishes individual event- Parameters:
event- event to be published
-
publish
Publish collection of events. It's up to implementation to publish them individually or as complete collection.- Parameters:
events- events to be published
-