Skip to content

Commit

Permalink
zalando-nakadi#140 Adjust EventLogWriter API
Browse files Browse the repository at this point in the history
Co-authored-by: Paŭlo Ebermann <[email protected]>
  • Loading branch information
fbrns and ePaul authored Nov 22, 2022
1 parent 44307b2 commit bb48117
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,17 @@ public interface EventLogWriter {
* the Nakadi event type of the event. This is roughly equivalent
* to an event channel or topic.
*
* @param dataTypeToData
* @param dataType
* the content of the {@code data_type} field of the Nakadi
* event mapped to some POJOs that can be serialized into JSON (required
* event
* @param data
* some POJOs that can be serialized into JSON (required
* parameter). This is meant to be a representation of the
* current state of the resource. It will be used as content of
* the {@code data} field of the Nakadi event.
*/
@Transactional
void fireCreateEvents(String eventType, Map<String, Collection<Object>> dataTypeToData);
void fireCreateEvents(String eventType, String dataType, Collection<Object> data);

/**
* Fires a data change event about an update of some resource (object).
Expand Down

0 comments on commit bb48117

Please sign in to comment.