Actors

com.phasmid.majabigwaduce.core.Actors
See theActors companion object
case class Actors(system: ActorSystem[_], config: Config) extends AutoCloseable

Case class to deal with the construction and configuration of actors.

CONSIDER eliminating this class and calling spawn/systemActorOf directly. See Issue #13.

Value parameters

config

the configuration for this set of actors.

system

the actor system.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait AutoCloseable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def close(): Unit
def createActor[U](spawn: (Behavior[U], String) => ActorRef[U], maybeName: Option[String], behavior: Behavior[U]): ActorRef[U]

Create a new actor, using the given spawn function (typically context.spawn for a child, or system.systemActorOf for a top-level actor).

Create a new actor, using the given spawn function (typically context.spawn for a child, or system.systemActorOf for a top-level actor).

Value parameters

behavior

the Behavior to spawn.

maybeName

an optional name.

spawn

the function which actually creates the actor -- abstracts over whether it's spawned from an ActorContext or directly from the ActorSystem.

Attributes

Returns

an ActorRef[U].

def logException(m: => String, x: Throwable = ...): Unit

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product