Interface CurrentEventsBySliceQuery

    • Method Detail

      • currentEventsBySlices

        <Event> Source<EventEnvelope<Event>,​NotUsed> currentEventsBySlices​(java.lang.String entityType,
                                                                                 int minSlice,
                                                                                 int maxSlice,
                                                                                 Offset offset)
        Same type of query as EventsBySliceQuery.eventsBySlices but the event stream is completed immediately when it reaches the end of the "result set". Depending on journal implementation, this may mean all events up to when the query is started, or it may include events that are persisted while the query is still streaming results. For eventually consistent stores, it may only include all events up to some point before the query is started.
      • sliceForPersistenceId

        int sliceForPersistenceId​(java.lang.String persistenceId)
      • sliceRanges

        java.util.List<Pair<java.lang.Integer,​java.lang.Integer>> sliceRanges​(int numberOfRanges)