EventStore v0.12.0 EventStore.Subscriptions.StreamSubscriptionProvider behaviour View Source
Specification to access subscription related event info from a single, or all streams
Link to this section Summary
Callbacks
Acknowledge receipt of the last seen event for the stream and subscription
Get the event_id
or stream_version
from the given event
Get the last seen event_id
or stream_version
from the acknowledgement
Get the last ack’d event for the given subscription
Get a stream of events since the last seen, fetched in batches limited to given size
Link to this section Types
ack() :: {event_id :: non_neg_integer(), stream_version :: non_neg_integer()}
Link to this section Callbacks
ack_last_seen_event(stream_uuid(), subscription_name(), last_seen()) :: :ok | {:error, reason :: any()}
Acknowledge receipt of the last seen event for the stream and subscription
Get the event_id
or stream_version
from the given event
Get the last seen event_id
or stream_version
from the acknowledgement
last_ack(subscription()) :: non_neg_integer()
Get the last ack’d event for the given subscription
unseen_event_stream(stream_uuid(), last_seen(), read_batch_size()) :: Enumerable.t()
Get a stream of events since the last seen, fetched in batches limited to given size