The central execution unit of the Otavia runtime. Each ActorThread is simultaneously the IO thread (polling the OS selector for network/file events) and the actor execution thread (running user business logic).
Every actor is pinned to a single ActorThread for its entire lifetime. All actor on the same thread are single-threaded with respect to each other, eliminating the need for locks on intra-thread coordination.
The event loop has three phases per iteration:
- '''Phase 1 — IO''': Poll the selector and process IO events
- '''Phase 2 — ChannelsActor dispatch''': Fully drain IO-capable actor and pending events (no time budget)
- '''Phase 3 — StateActor dispatch''': Run business logic actor within a time budget
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Threadtrait Runnableclass Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Clear all deferred channel tasks. Called during shutdown to release pending work.
Clear all deferred channel tasks. Called during shutdown to release pending work.
Attributes
Per-thread direct memory allocator.
Per-thread direct memory allocator.
Attributes
Per-thread heap memory allocator.
Per-thread heap memory allocator.
Attributes
Attributes
- Definition Classes
-
Thread -> Runnable
Inherited methods
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Attributes
- Inherited from:
- Thread
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Inherited from:
- Thread
Deprecated and Inherited methods
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Thread
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Thread
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Thread
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Thread
Attributes
- Deprecated
-
[Since version ]see corresponding Javadoc for more information. - Inherited from:
- Thread