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 nulleventPayload - the JSON object representing the event, not
nullRegistration subscribe(BiConsumer<UUID,com.fasterxml.jackson.databind.node.ObjectNode> eventConsumer)
eventConsumer - a consumer that should receive all events, not
nullnullCopyright © 2023. All rights reserved.