PriorityConfig
Actor scheduling priority configuration.
The actor scheduler uses a three-signal model to determine whether an actor should be scheduled with high priority. High-priority actors are dispatched before normal-priority actors, reducing latency for actors that need prompt attention.
Value parameters
- highPriorityEventSize
-
Event mailbox size threshold to boost scheduling priority. When an actor's event mailbox contains more than this many messages, the actor is scheduled with high priority. System events (timer expirations, channel lifecycle) need timely processing to maintain system responsiveness. Default is 4.
- highPriorityReplySize
-
Reply mailbox size threshold to boost scheduling priority. When an actor's reply mailbox contains more than this many messages, the actor is scheduled with high priority. Each reply corresponds to a completable cc.otavia.core.channel.MessagePromise — processing it completes a future and may unblock suspended stacks. Default is 2.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any