Actor

cc.otavia.core.actor.Actor
See theActor companion object
trait Actor[+M <: Call]

base class of IO & Actor model, it has two subclass

  1. cc.otavia.core.actor.StateActor: general actor
  2. cc.otavia.core.actor.ChannelsActor: socket group, a actor which can handle io event

Type parameters

M

the type of message of this actor can handle

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

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

final def actorId: Long

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

final def autowire[A <: Actor[_] : ClassTag](qualifier: Option[String], remote: Option[String]): Address[MessageOf[A]]
final def autowire[A <: Actor[_] : ClassTag](qualifier: String): Address[MessageOf[A]]
def nice: Int
final def system: ActorSystem

The ActorSystem of this actor instance is running

The ActorSystem of this actor instance is running

Attributes

Returns

ActorSystem

final def timer: Timer