Movie::AbstractActorSystem
Instance methods
Unified actor lookup - returns local or remote actor ref based on path. For local paths (matching this system's address), returns the local ActorRef. For remote paths, returns a RemoteActorRef that transparently handles serialization.
Example: ref = system.actor_for("movie.tcp://my-system@localhost:9000/user/worker", MyMessage) ref << MyMessage.new # Works for both local and remote
Convenience overload that parses a path string. Supports multiple formats:
- Full URI: "movie://system/user/ping" or "movie.tcp://system@host:port/user/ping"
- Absolute path: "/user/ping" → auto-prepends local system address
- Relative path: "user/ping" → auto-prepends local system address
Enables remoting on this actor system. Returns the RemoteExtension for configuring remote communication.
Returns an extension by type, or nil if not registered. Example: system.extension(Remote::RemoteExtension)
Returns an extension via an ExtensionId (Akka-style lazy access). Example: Movie::Remote::Remoting.get(system)
Registers an actor context in the system registry
Registers an extension with this actor system. The extension will be started immediately and stopped when the system shuts down.
Returns the remote extension if remoting is enabled. Convenience method - equivalent to extension(Remote::RemoteExtension)
Returns the system scheduler for scheduling timers and delayed tasks. Uses a dedicated scheduler dispatcher for execution.
Spawns an actor under the user guardian using registry defaults. Available on AbstractActorSystem so extensions can spawn helper actors without depending on a concrete root message type.
Spawns an actor under the user guardian with an explicit supervision config.
Spawns a system actor under /system/{name} System actors are internal framework actors (scheduler, dead letters, etc.)
Convenience method to lookup an actor under /system/{name}