final class GrpcReadJournal extends ReadJournal with EventsBySliceQuery with EventTimestampQuery with LoadEventQuery with CanTriggerReplay
- Source
- GrpcReadJournal.scala
- Alphabetic
- By Inheritance
- GrpcReadJournal
- CanTriggerReplay
- LoadEventQuery
- EventTimestampQuery
- EventsBySliceQuery
- ReadJournal
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new GrpcReadJournal(delegate: scaladsl.GrpcReadJournal)
Value Members
- def close(): CompletionStage[Done]
Close the gRPC client.
Close the gRPC client. It will be automatically closed when the
ActorSystem
is terminated, so invoking this is only needed when there is a need to close the resource before that. After closing theGrpcReadJournal
instance cannot be used again. - def eventsBySlices[Event](entityType: String, minSlice: Int, maxSlice: Int, offset: Offset): Source[EventEnvelope[Event], NotUsed]
- Definition Classes
- GrpcReadJournal → EventsBySliceQuery
- def loadEnvelope[Event](persistenceId: String, sequenceNr: Long): CompletionStage[EventEnvelope[Event]]
- Definition Classes
- GrpcReadJournal → LoadEventQuery
- val replayCorrelationId: UUID
Correlation id to be used with ConsumerFilter.ReplayWithFilter.
Correlation id to be used with ConsumerFilter.ReplayWithFilter. Such replay request will trigger replay in all
eventsBySlices
queries with the samestreamId
running from this instance of theGrpcReadJournal
. Create separate instances of theGrpcReadJournal
to have separation between replay requests for the samestreamId
. - def sliceForPersistenceId(persistenceId: String): Int
- Definition Classes
- GrpcReadJournal → EventsBySliceQuery
- def sliceRanges(numberOfRanges: Int): List[Pair[Integer, Integer]]
- Definition Classes
- GrpcReadJournal → EventsBySliceQuery
- def streamId(): String
The identifier of the stream to consume, which is exposed by the producing/publishing side.
The identifier of the stream to consume, which is exposed by the producing/publishing side. It is defined in the GrpcQuerySettings.
- def timestampOf(persistenceId: String, sequenceNr: Long): CompletionStage[Optional[Instant]]
- Definition Classes
- GrpcReadJournal → EventTimestampQuery