Skip to content

Commit

Permalink
Return java.lang.Long value in javadsl.
Browse files Browse the repository at this point in the history
  • Loading branch information
janjaali committed Feb 16, 2025
1 parent 02197f8 commit 711145f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ class JdbcReadJournal(journal: ScalaJdbcReadJournal)
* @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]] =
def currentLastKnownSequenceNumberByPersistenceId(persistenceId: String): CompletionStage[Optional[java.lang.Long]] =
journal
.currentLastKnownSequenceNumberByPersistenceId(persistenceId)
.asJava
.thenApply(_.toJava)
.thenApply(_.map(java.lang.Long.valueOf).toJava)
}

0 comments on commit 711145f

Please sign in to comment.