Various internal stable markers (#27004)

This commit is contained in:
Christopher Batey 2019-05-29 07:09:12 +01:00 committed by GitHub
parent 31f6170c62
commit 28fbd28e7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 1 deletions

View file

@ -163,6 +163,7 @@ private[akka] object Shard {
*
* @see [[ClusterSharding$ ClusterSharding extension]]
*/
@InternalStableApi
private[akka] class Shard(
typeName: String,
shardId: ShardRegion.ShardId,
@ -381,6 +382,7 @@ private[akka] class Shard(
entityTerminated(ref)
}
@InternalStableApi
def entityTerminated(ref: ActorRef): Unit = {
val id = idByRef(ref)
idByRef -= ref

View file

@ -139,6 +139,7 @@ private[persistence] trait Eventsourced
* Called whenever a message replay succeeds.
* May be implemented by subclass.
*/
@InternalStableApi
private[akka] def onReplaySuccess(): Unit = ()
/**
@ -231,6 +232,7 @@ private[persistence] trait Eventsourced
private def unstashInternally(all: Boolean): Unit =
if (all) internalStash.unstashAll() else internalStash.unstash()
@InternalStableApi
private def startRecovery(recovery: Recovery): Unit = {
val timeout = {
val journalPluginConfig = this match {

View file

@ -7,6 +7,7 @@ package akka.remote
import akka.AkkaException
import akka.Done
import akka.actor._
import akka.annotation.InternalStableApi
import akka.event.LoggingAdapter
import scala.collection.immutable
@ -95,6 +96,7 @@ private[akka] abstract class RemoteTransport(val system: ExtendedActorSystem, va
* @param uid UID of the remote system, if the uid is not defined it will not be a strong quarantine but
* the current endpoint writer will be stopped (dropping system messages) and the address will be gated
*/
@InternalStableApi
def quarantine(address: Address, uid: Option[Long], reason: String): Unit
}

View file

@ -24,12 +24,12 @@ import scala.util.Success
import scala.util.Try
import scala.util.control.NoStackTrace
import scala.util.control.NonFatal
import akka.Done
import akka.NotUsed
import akka.actor.Actor
import akka.actor.Props
import akka.actor._
import akka.annotation.InternalStableApi
import akka.dispatch.Dispatchers
import akka.event.Logging
import akka.event.LoggingAdapter
@ -793,6 +793,7 @@ private[remote] abstract class ArteryTransport(_system: ExtendedActorSystem, _pr
}
}
@InternalStableApi
override def quarantine(remoteAddress: Address, uid: Option[Long], reason: String): Unit = {
quarantine(remoteAddress, uid, reason, harmless = false)
}

View file

@ -10,6 +10,7 @@ import scala.annotation.tailrec
import scala.collection.immutable
import scala.util.control.NonFatal
import akka.actor.{ ActorRef, ExtendedActorSystem }
import akka.annotation.InternalStableApi
import akka.event.{ Logging, LoggingAdapter }
import akka.util.{ unused, OptionVal }
import akka.util.ccompat._
@ -327,6 +328,7 @@ private[remote] object RemoteInstruments {
def getKey(kl: Int): Byte = (kl >>> 26).toByte
def getLength(kl: Int): Int = kl & lengthMask
@InternalStableApi
def create(system: ExtendedActorSystem, @unused log: LoggingAdapter): Vector[RemoteInstrument] = {
val c = system.settings.config
val path = "akka.remote.artery.advanced.instruments"