Mark this event as handled.
Mark this event as handled. If all events of a batch are handled the read position can be advanced.
indicates if the event was handled successfully.
Change the type of the payload by applying the given function to the payload.
Change the type of the payload by applying the given function to the payload. This is useful if the payload is changed in different stages and the commit should be applied in a later stage. Note: Committing a mapped event has the same effect as committing the original event - the sequence number is not changed.
the type of the returned CommittableEvent
the function to apply to the payload.
A CommittableEvent
with payload of type B
Change the type of the payload by applying the async function to the payload.
Change the type of the payload by applying the async function to the payload. This is useful if the payload is changed in an async stage and the commit should be applied in a later stage. Note: Committing a mapped event has the same effect as committing the original event - the sequence number is not changed.
the type of the returned CommittableEvent
the function to apply to the payload.
the execution context to use
a Future
which will be completed with a CommittableEvent
with payload of type B
The payload of this committable event.
The payload of this committable event.
the payload of this event.
The sequence number of this event.
The sequence number of this event.
the sequence number of this event.
Timestamp when the event has been created.
Timestamp when the event has been created.
timestamp of creation.
The CommittableEvent is passed through the stream. Every event has to be committed explicitly.