ptrdom commented on code in PR #267: URL: https://github.com/apache/pekko-persistence-jdbc/pull/267#discussion_r1957072968
########## core/src/main/scala/org/apache/pekko/persistence/jdbc/query/javadsl/JdbcReadJournal.scala: ########## @@ -132,4 +138,16 @@ class JdbcReadJournal(journal: ScalaJdbcReadJournal) */ override def eventsByTag(tag: String, offset: Offset): Source[EventEnvelope, NotUsed] = journal.eventsByTag(tag, offset).asJava + + /** + * Returns the last known sequence number for the given `persistenceId`. Empty if the `persistenceId` is unknown. + * + * @param persistenceId The `persistenceId` for which the last known sequence number should be returned. + * @return Some sequence number or None if the `persistenceId` is unknown. + */ + def currentLastKnownSequenceNumberByPersistenceId(persistenceId: String): CompletionStage[Optional[Long]] = Review Comment: Quick search in Pekko repository gives mixed results, some `javadsl` classes stick to `java.lang.Long` quite well, others do not. My guess is that `javadsl` should use `java.lang.Long`, it is just difficult to enforce, because there is no automatic linting for it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org For additional commands, e-mail: notifications-h...@pekko.apache.org