ActorSystem

cc.otavia.core.system.ActorSystem
See theActorSystem companion object
trait ActorSystem

ActorSystem is a container of actor and channel group instance, a actor or channel group instance must be create by a actor system instance, actor instance in different actor system instance can not send message directly.

only Notice message can send to a actor or channel group out side actor and channel group

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def buildActor[A <: Actor[_ <: Call]](factory: ActorFactory[A], num: Int, global: Boolean, qualifier: Option[String], primary: Boolean): Address[MessageOf[A]]

Create some new actor instance, and return the address of those actor.

Create some new actor instance, and return the address of those actor.

Type parameters

A

type of actor

Value parameters

factory

factory for create actor instance

global

whether register this address to ioc manager of actor system

num

number of actor instance to create

qualifier

qualifier of ioc instance if ioc is true

Attributes

def initialized: Boolean
def isBusy: Boolean
def loadModule(module: Module): Unit
def shutdown(): Unit
def timer: Timer

Timeout event dispatcher of this actor system

Timeout event dispatcher of this actor system

Attributes

Concrete methods

final def actorWorkerSize: Int