Interface EventPublisher
- All Known Subinterfaces:
CommandEventPublisher<I>
- All Known Implementing Classes:
CommandEventCapturer
,EventCapturer
public interface EventPublisher
Interface specifying operations for publishing Java event objects. Implementations typically either capture these
events in-memory for further (or deferred) processing or immediately convert and pass them to
EsdbClient.write(List, List)
.-
Method Summary
Modifier and TypeMethodDescriptiondefault <E> void
Publishes the given event onto the given subject.default <E> void
Publishes the given event and its meta-data onto the given subject.<E> void
Publishes the given event and its meta-data onto the given subject with preconditions.
-
Method Details
-
publish
Publishes the given event onto the given subject. No meta-data, i.e. an empty map, is published with the event.- Type Parameters:
E
- the generic event type- Parameters:
subject
- the absolute subject pathevent
- the event object
-
publish
Publishes the given event and its meta-data onto the given subject.- Type Parameters:
E
- the generic event type- Parameters:
subject
- the absolute subject pathevent
- the event objectmetaData
- the event meta-data
-
publish
Publishes the given event and its meta-data onto the given subject with preconditions.- Type Parameters:
E
- the generic event type- Parameters:
subject
- the absolute subject pathevent
- the event objectmetaData
- the event meta-datapreconditions
- the preconditions that must not be violated
-