Base trait of the actor model. It has two concrete subclasses:
- cc.otavia.core.actor.StateActor: pure business logic actor
- cc.otavia.core.actor.ChannelsActor: IO-capable actor that manages Channel instances
Type parameters
- M
-
the type of messages this actor can handle
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Appenderclass ConsoleAppender
Members list
Value members
Abstract methods
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
Concrete 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
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
Maximum number of messages per batch. Used by the scheduling system.
Maximum number of messages per batch. Used by the scheduling system.
Attributes
The ActorSystem of this actor instance is running
The ActorSystem of this actor instance is running
Attributes
- Returns
-
ActorSystem
Concrete 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
Filter function for batching Notice messages. Return true to include in batch.
Filter function for batching Notice messages. Return true to include in batch.