All Downloads are FREE. Search and download functionalities are using the official Maven repository.

akka.projection.r2dbc.internal.OffsetPidSeqNr.scala Maven / Gradle / Ivy

There is a newer version: 1.5.0-M4
Show newest version
/*
 * Copyright (C) 2022 - 2023 Lightbend Inc. 
 */

package akka.projection.r2dbc.internal

import akka.annotation.InternalApi

/**
 * INTERNAL API
 */
@InternalApi private[akka] object OffsetPidSeqNr {
  def apply(offset: Any, pid: String, seqNr: Long): OffsetPidSeqNr =
    new OffsetPidSeqNr(offset, Some(pid -> seqNr))

  def apply(offset: Any): OffsetPidSeqNr =
    new OffsetPidSeqNr(offset, None)
}

/**
 * INTERNAL API
 */
@InternalApi private[akka] final case class OffsetPidSeqNr(offset: Any, pidSeqNr: Option[(String, Long)])




© 2015 - 2025 Weber Informatics LLC | Privacy Policy