@Test public void readHighestSequenceNr() { Assert.assertEquals(99, testSubject.readHighestSequenceNr("55")); }
public long readHighestSequenceNr(String aggregateId) { return eventStorageEngine.getLastSequenceNumber(aggregateId).orElse(-1L); }
AggregateReader { public long readHighestSequenceNr(String aggregateId) { return eventStorageEngine.getLastSequenceNumber(aggregateId).orElse(-1L); } }
AggregateReader { public long readHighestSequenceNr(String aggregateId) { return eventStorageEngine.getLastSequenceNumber(aggregateId).orElse(-1L); } AggregateReader(EventStorageEngine eventStorageEngine, SnapshotReader snapshotReader); }
AggregateReader { public long readHighestSequenceNr(String aggregateId) { return eventStorageEngine.getLastSequenceNumber(aggregateId).orElse(-1L); } AggregateReader(EventStorageEngine eventStorageEngine, SnapshotReader snapshotReader); void readEvents(String aggregateId, boolean useSnapshots, long minSequenceNumber,
                           Consumer<SerializedEvent> eventConsumer); void readEvents(String aggregateId, boolean useSnapshots, long minSequenceNumber, long maxSequenceNumber,
                           long minToken,
                           Consumer<SerializedEvent> eventConsumer); void readSnapshots(String aggregateId, long minSequenceNumber, long maxSequenceNumber, int maxResults,
                              Consumer<SerializedEvent> eventConsumer); long readHighestSequenceNr(String aggregateId); long readHighestSequenceNr(String aggregateId, int maxSegmentsHint, long maxTokenHint); }
AggregateReader { public long readHighestSequenceNr(String aggregateId) { return eventStorageEngine.getLastSequenceNumber(aggregateId).orElse(-1L); } AggregateReader(EventStorageEngine eventStorageEngine, SnapshotReader snapshotReader); void readEvents(String aggregateId, boolean useSnapshots, long minSequenceNumber,
                           Consumer<SerializedEvent> eventConsumer); void readEvents(String aggregateId, boolean useSnapshots, long minSequenceNumber, long maxSequenceNumber,
                           long minToken,
                           Consumer<SerializedEvent> eventConsumer); void readSnapshots(String aggregateId, long minSequenceNumber, long maxSequenceNumber, int maxResults,
                              Consumer<SerializedEvent> eventConsumer); long readHighestSequenceNr(String aggregateId); long readHighestSequenceNr(String aggregateId, int maxSegmentsHint, long maxTokenHint);  }