Creates a Source you can use to subscribes to all events.
Creates a Source you can use to subscribes to all events. Existing events from position onwards are read from the Event Store and presented to the user of Source as if they had been pushed.
Once the end of the stream is read the Source transparently (to the user) switches to push new events as they are written.
If events have already been received and resubscription from the same point is desired, use the position representing the last event processed.
Whether to resolve LinkTo events automatically
The position from which to start, or None to read all events
The optional user credentials to perform operation with
Whether to subscribe to the future events upon reading all current
Number of events to be retrieved by client as single message
A akka.stream.scaladsl.Source representing all streams
Continues transaction by provided transaction ID.
Continues transaction by provided transaction ID.
EsTransaction allows the calling of multiple writes with multiple round trips over long periods of time between the caller and the event store. This method is only available through the TCP interface and no equivalent exists for the RESTful interface.
The transaction ID that needs to be continued.
The optional user credentials to perform operation with
EsTransaction for given transaction id
Starts a transaction in the event store on a given stream asynchronously
Starts a transaction in the event store on a given stream asynchronously
EsTransaction allows the calling of multiple writes with multiple round trips over long periods of time between the caller and the event store. This method is only available through the TCP interface and no equivalent exists for the RESTful interface.
Stream id and other params to star transaction
The optional user credentials to perform operation with
A Future containing an actual transaction
Creates a Source you can use to subscribe to a single event stream.
Creates a Source you can use to subscribe to a single event stream. Existing events from event number onwards are read from the stream and presented to the user of Source as if they had been pushed.
Once the end of the stream is read the Source transparently (to the user) switches to push new events as they are written.
If events have already been received and resubscription from the same point is desired, use the event number of the last event processed.
The stream to subscribe to
The event number from which to start, or None to read all events.
Whether to resolve LinkTo events automatically
The optional user credentials to perform operation with
Whether to subscribe to the future events upon reading all current
Number of events to be retrieved by client as single message
A akka.stream.scaladsl.Source representing the stream
Subscribes to all events in the Event Store.
Subscribes to all events in the Event Store. New events written to the stream while the subscription is active will be pushed to the client.
A SubscriptionObserver to handle a new event received over the subscription
Whether to resolve LinkTo events automatically
The optional user credentials to perform operation with
A Closeable representing the subscription which can be closed.
Subscribes to a all events.
Subscribes to a all events. Existing events from position onwards are read from the Event Store and presented to the user of SubscriptionObserver as if they had been pushed.
Once the end of the stream is read the subscription is transparently (to the user) switched to push new events as they are written.
If events have already been received and resubscription from the same point is desired, use the position representing the last event processed which appeared on the subscription.
A SubscriptionObserver to handle a new event received over the subscription
The position from which to start, or None
to read all events
Whether to resolve LinkTo events automatically
The optional user credentials to perform operation with
A Closeable representing the subscription which can be closed.
Subscribes to a single event stream.
Subscribes to a single event stream. New events written to the stream while the subscription is active will be pushed to the client.
The stream to subscribe to
A SubscriptionObserver to handle a new event received over the subscription
Whether to resolve LinkTo events automatically
The optional user credentials to perform operation with
A Closeable representing the subscription which can be closed.
Subscribes to a single event stream.
Subscribes to a single event stream. Existing events from lastCheckpoint onwards are read from the stream and presented to the user of SubscriptionObserver as if they had been pushed.
Once the end of the stream is read the subscription is transparently (to the user) switched to push new events as they are written.
If events have already been received and resubscription from the same point is desired, use the event number of the last event processed which appeared on the subscription.
The stream to subscribe to
A eventstore.SubscriptionObserver to handle a new event received over the subscription
The event number from which to start, or None
to read all events.
Whether to resolve LinkTo events automatically
The optional user credentials to perform operation with
A Closeable representing the subscription which can be closed.
Creates Publisher you can use to subscribes to a all events.
Creates Publisher you can use to subscribes to a all events. Existing events from position
onwards are read from the Event Store and presented to the user of
Publisher
as if they had been pushed.
Once the end of the stream is read the subscription is transparently (to the user) switched to push new events as they are written.
If events have already been received and resubscription from the same point is desired, use the position representing the last event processed which appeared on the subscription.
Whether to resolve LinkTo events automatically
The position from which to start, or None
to read all events
The optional user credentials to perform operation with
Whether to subscribe to the future events upon reading all current
Number of events to be retrieved by client as single message
A org.reactivestreams.Publisher representing all streams
(Since version 5.0.8) Use allStreamsSource(..).runWith(Sink.asPublisher(..))
instead.
(Since version 3.0.0) use apply
instead
Creates Publisher you can use to subscribe to a single event stream.
Creates Publisher you can use to subscribe to a single event stream. Existing events from
lastCheckpoint onwards are read from the stream
and presented to the user of Publisher
as if they had been pushed.
Once the end of the stream is read the subscription is transparently (to the user) switched to push new events as they are written.
If events have already been received and resubscription from the same point is desired, use the event number of the last event processed which appeared on the subscription.
The stream to publish
The event number from which to start, or None
to read all events.
Whether to resolve LinkTo events automatically
The optional user credentials to perform operation with
Whether to subscribe to the future events upon reading all current
Number of events to be retrieved by client as single message
A org.reactivestreams.Publisher representing stream
(Since version 5.0.8) Use streamSource(..).runWith(Sink.asPublisher(..))
instead.
Maintains a full duplex connection to the EventStore
All operations are handled in a full async manner. Many threads can use an EsConnection at the same time or a single thread can make many asynchronous requests. To get the most performance out of the connection it is generally recommended to use it in this way.