PriorityConfig

cc.otavia.core.config.PriorityConfig
case class PriorityConfig(highPriorityReplySize: Int = ..., highPriorityEventSize: Int = ...)

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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product