Annotate Shard instrumented methods with InternalStableApi (#29255)

This commit is contained in:
Yury Gribkov 2020-06-25 03:39:26 -04:00 committed by GitHub
parent 0f7785e8d9
commit 6b402f4bf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -366,6 +366,8 @@ private[akka] object Shard {
def pendingRememberedEntitiesExist(): Boolean = !remembering.isEmpty
def entityIdExists(id: EntityId): Boolean = entities.get(id) != null
@InternalStableApi
def size: Int = entities.size
override def toString: EntityId = entities.toString
@ -418,6 +420,7 @@ private[akka] class Shard(
private val flightRecorder = ShardingFlightRecorder(context.system)
@InternalStableApi
private val entities = new Entities(log, settings.rememberEntities, verboseDebug)
private var lastMessageTimestamp = Map.empty[EntityId, Long]