public static interface Backend.EventLog
Modifier and Type | Method and Description |
---|---|
void |
submitEvent(UUID trackingId,
com.fasterxml.jackson.databind.node.ObjectNode eventPayload)
Submits an event through the backend to all subscribers.
|
Registration |
subscribe(BiConsumer<UUID,com.fasterxml.jackson.databind.node.ObjectNode> eventConsumer)
Adds a subscriber to receive all past and future events for this
event log.
|
void submitEvent(UUID trackingId, com.fasterxml.jackson.databind.node.ObjectNode eventPayload)
trackingId
- the tracking id of this event, not null
eventPayload
- the JSON object representing the event, not
null
Registration subscribe(BiConsumer<UUID,com.fasterxml.jackson.databind.node.ObjectNode> eventConsumer)
eventConsumer
- a consumer that should receive all events, not
null
null
Copyright © 2024. All rights reserved.