abstract class ShardCoordinator extends Actor with Timers
Singleton coordinator that decides where to allocate shards.
- See also
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- ShardCoordinator
- Timers
- Actor
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ShardCoordinator(settings: ClusterShardingSettings, allocationStrategy: ShardAllocationStrategy)
Type Members
- type Receive = PartialFunction[Any, Unit]
- Definition Classes
- Actor
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def active: Receive
- var aliveRegions: Set[ActorRef]
- var allRegionsRegistered: Boolean
- def allocateShardHomesForRememberEntities(): Unit
- def aroundPostRestart(reason: Throwable): Unit
- Attributes
- protected[pekko]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
- def aroundPostStop(): Unit
- Attributes
- protected[pekko]
- Definition Classes
- Timers → Actor
- def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit
- Attributes
- protected[pekko]
- Definition Classes
- Timers → Actor
- def aroundPreStart(): Unit
- Attributes
- protected[pekko]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
- def aroundReceive(receive: actor.Actor.Receive, msg: Any): Unit
- Attributes
- protected[pekko]
- Definition Classes
- Timers → Actor
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- val cluster: Cluster
- implicit val context: ActorContext
- Definition Classes
- Actor
- def continueGetShardHome(shard: ShardId, region: ActorRef, getShardHomeSender: ActorRef): Unit
- def continueRebalance(shards: Set[ShardId]): Unit
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- var gracefulShutdownInProgress: Set[ActorRef]
- def handleGetShardHome(shard: ShardId): Boolean
- returns
trueif the message could be handled without state update, i.e. the shard location was known or the request was deferred or ignored
- def hasAllRegionsRegistered(): Boolean
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isMember(region: ActorRef): Boolean
- val log: MarkerLoggingAdapter
- val minMembers: Int
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def postRestart(reason: Throwable): Unit
- Definition Classes
- Actor
- Annotations
- @throws(classOf[java.lang.Exception])
- def postStop(): Unit
- Definition Classes
- ShardCoordinator → Actor
- def preRestart(reason: Throwable, message: Option[Any]): Unit
- Definition Classes
- Actor
- Annotations
- @throws(classOf[java.lang.Exception])
- def preStart(): Unit
- Definition Classes
- ShardCoordinator → Actor
- var preparingForShutdown: Boolean
- var rebalanceInProgress: Map[ShardId, Set[ActorRef]]
- var rebalanceWorkers: Set[ActorRef]
- def receiveTerminated: Receive
- def regionProxyTerminated(ref: ActorRef): Unit
- def regionTerminated(ref: ActorRef): Unit
- var regionTerminationInProgress: Set[ActorRef]
- val removalMargin: FiniteDuration
- implicit final val self: ActorRef
- Definition Classes
- Actor
- def sendHostShardMsg(shard: ShardId, region: ActorRef): Unit
- final def sender(): ActorRef
- Definition Classes
- Actor
- def shutdownShards(shuttingDownRegion: ActorRef, shards: Set[ShardId]): Unit
- def shuttingDown: Receive
- var state: State
- def stateInitialized(): Unit
- def supervisorStrategy: SupervisorStrategy
- Definition Classes
- Actor
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def timers: TimerScheduler
- Definition Classes
- Timers
- def toString(): String
- Definition Classes
- AnyRef → Any
- var unAckedHostShards: Map[ShardId, Cancellable]
- def unhandled(message: Any): Unit
- Definition Classes
- Actor
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- var waitingForLocalRegionToTerminate: Boolean
- def watchStateActors(): Unit