Interface ICurrentEventsByPersistenceIdQuery
A plugin may optionally support this query by implementing this trait.
Namespace: Akka.Persistence.Query
Assembly: Akka.Persistence.Query.dll
Syntax
public interface ICurrentEventsByPersistenceIdQuery : IReadJournal
Methods
| Improve this Doc View SourceCurrentEventsByPersistenceId(String, Int64, Int64)
Same type of query as EventsByPersistenceId(String, Int64, Int64) but the event stream is completed immediately when it reaches the end of the "result set". Events that are stored after the query is completed are not included in the event stream.
Declaration
Source<EventEnvelope, NotUsed> CurrentEventsByPersistenceId(string persistenceId, long fromSequenceNr, long toSequenceNr)
Parameters
Type | Name | Description |
---|---|---|
String | persistenceId | |
Int64 | fromSequenceNr | |
Int64 | toSequenceNr |
Returns
Type | Description |
---|---|
Source<EventEnvelope, NotUsed> |