add InternalStableApi annotation (#26949)

This commit is contained in:
Patrik Nordwall 2019-05-21 17:29:11 +02:00 committed by Christopher Batey
parent 14d070298d
commit a4a61649f6
3 changed files with 49 additions and 20 deletions

View file

@ -20,6 +20,7 @@ import akka.actor.Props
import akka.actor.Stash
import akka.actor.Terminated
import akka.actor.Timers
import akka.annotation.InternalStableApi
import akka.cluster.Cluster
import akka.cluster.ddata.ORSet
import akka.cluster.ddata.ORSetKey
@ -495,6 +496,7 @@ private[akka] class Shard(
getOrCreateEntity(id).tell(payload, snd)
}
@InternalStableApi
def getOrCreateEntity(id: EntityId): ActorRef = {
val name = URLEncoder.encode(id, "utf-8")
context.child(name) match {