Skip to content

Commit

Permalink
Adds ApiMayChange and InternalApi - last round (#447)
Browse files Browse the repository at this point in the history
* added last ApiMayChange and InternalApi

* Apply suggestions from code review - adding line break
  • Loading branch information
octonato authored Sep 10, 2020
1 parent 5846ce9 commit 9c4e0a4
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@

package akka.projection

import akka.annotation.ApiMayChange

@ApiMayChange
final case class MergeableOffset[Offset](val entries: Map[String, Offset])
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ package akka.projection

import scala.collection.immutable

import akka.annotation.ApiMayChange
import akka.util.ccompat.JavaConverters._

@ApiMayChange
object ProjectionId {

/**
Expand Down Expand Up @@ -85,6 +87,7 @@ object ProjectionId {
keys.asScala.map { key: String => new ProjectionId(name, key) }.asJava
}

@ApiMayChange
final class ProjectionId private (val name: String, val key: String) {

require(name != null, "name must not be null")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ private[projection] object ProjectionSettings {
}
}

@InternalApi
private object RecoveryStrategyConfig {
def fromConfig(config: Config): HandlerRecoveryStrategy = {
val strategy = config.getString("strategy")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ abstract class SourceProvider[Offset, Envelope] {

}

@ApiMayChange
trait VerifiableSourceProvider[Offset, Envelope] extends SourceProvider[Offset, Envelope] {

def verifyOffset(offset: Offset): OffsetVerification

}

@ApiMayChange
trait MergeableOffsetSourceProvider[Offset <: MergeableOffset[_], Envelope] extends SourceProvider[Offset, Envelope]
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ trait SourceProvider[Offset, Envelope] {

}

@ApiMayChange
trait VerifiableSourceProvider[Offset, Envelope] extends SourceProvider[Offset, Envelope] {

def verifyOffset(offset: Offset): OffsetVerification

}

@ApiMayChange
trait MergeableOffsetSourceProvider[Offset <: MergeableOffset[_], Envelope] extends SourceProvider[Offset, Envelope]
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,3 @@ END;

override def updateStatement(): String = DialectDefaults.updateStatement(table)
}

/*
*/
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ object SlickProjection {
new SlickOffsetStore(system, databaseConfig.db, databaseConfig.profile, SlickSettings(system))
}

@ApiMayChange
object SlickHandler {

/** SlickHandler that can be define from a simple function */
Expand Down

0 comments on commit 9c4e0a4

Please sign in to comment.