Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Whether this actor supports batch message processing. When true, the ActorSystem dispatches multiple messages in bulk rather than individually.
Whether this actor supports batch message processing. When true, the ActorSystem dispatches multiple messages in bulk rather than individually.
Attributes
- Definition Classes
Maximum number of messages per batch. Used by the scheduling system.
Maximum number of messages per batch. Used by the scheduling system.
Attributes
- Definition Classes
Inherited methods
The unique id of this actor distributed by ActorSystem, when a actor instance is mounted to a ActorSystem, the actor system will distribute a unique id to the instance.
The unique id of this actor distributed by ActorSystem, when a actor instance is mounted to a ActorSystem, the actor system will distribute a unique id to the instance.
Attributes
- Returns
-
id number
- Inherited from:
- Actor
Attributes
- Inherited from:
- Actor
Attributes
- Inherited from:
- Actor
Context of this actor. This method can only used after actor instance mount to actor system
Context of this actor. This method can only used after actor instance mount to actor system
Attributes
- Definition Classes
-
AbstractActor -> Actor
- Inherited from:
- AbstractActor (hidden)
Discover handler methods in this actor and generate match/case dispatch. Call once in the actor constructor body. The macro scans for methods with AskStack or NoticeStack parameters, verifies they cover all message types in the actor's type parameter, and generates dispatch code equivalent to hand-written match/case.
Discover handler methods in this actor and generate match/case dispatch. Call once in the actor constructor body. The macro scans for methods with AskStack or NoticeStack parameters, verifies they cover all message types in the actor's type parameter, and generates dispatch code equivalent to hand-written match/case.
Attributes
- Inherited from:
- AbstractActor (hidden)
Attributes
- Inherited from:
- Actor
Send a Notice to self, inserted at the head of the notice mailbox before all other pending notices.
Send a Notice to self, inserted at the head of the notice mailbox before all other pending notices.
Attributes
- Inherited from:
- AbstractActor (hidden)
Handle an Ask message. Called on initial receipt and on each resume after an awaited reply completes.
Handle an Ask message. Called on initial receipt and on each resume after an awaited reply completes.
Match on stack.state to distinguish initial entry from resumed execution:
override protected def resumeAsk(stack: AskStack[MyAsk]): StackYield =
stack.state match
case _: StartState =>
val state = FutureState[MyReply]()
address.ask(MyRequest(), state.future)
stack.suspend(state)
case state: FutureState[MyReply] =>
stack.return(state.future.getNow)
Attributes
- Inherited from:
- AbstractActor (hidden)
Handle a batch of Ask messages in a single stack.
Handle a batch of Ask messages in a single stack.
Attributes
- Inherited from:
- AbstractActor (hidden)
Typed self-address for this StateActor.
Typed self-address for this StateActor.
Attributes
- Definition Classes
-
StateActor -> AbstractActor
- Inherited from:
- StateActor
Set the ask dispatch function. Called by deriveDispatch macro expansion.
Set the ask dispatch function. Called by deriveDispatch macro expansion.
Attributes
- Inherited from:
- AbstractActor (hidden)
Set the notice dispatch function. Called by deriveDispatch macro expansion.
Set the notice dispatch function. Called by deriveDispatch macro expansion.
Attributes
- Inherited from:
- AbstractActor (hidden)
The ActorSystem of this actor instance is running
The ActorSystem of this actor instance is running
Attributes
- Returns
-
ActorSystem
- Inherited from:
- Actor
Inherited fields
Filter function for batching Ask messages. Return true to include in batch.
Filter function for batching Ask messages. Return true to include in batch.
Attributes
- Inherited from:
- Actor
Filter function for batching Notice messages. Return true to include in batch.
Filter function for batching Notice messages. Return true to include in batch.
Attributes
- Inherited from:
- Actor