Interface EventPublisher


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 Type
    Method
    Description
    void
    publish(DataEvent<?> event)
    Publishes individual event
    void
    Publish collection of events.
  • Method Details

    • 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