ActorSystem

peloton.actor.ActorSystem
See theActorSystem companion object
class ActorSystem

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def actorRef[M](name: String)(using ct: ClassTag[M]): IO[Option[ActorRef[M]]]
def shutdown: IO[Unit]
def spawn[S, M](initialState: S, initialBehavior: Behavior[S, M], name: String)(using ct: ClassTag[M]): IO[ActorRef[M]]

Spawn a stateful actor

Spawn a stateful actor

Attributes

def spawn[S, M](persistenceId: PersistenceId, initialState: S, initialBehavior: Behavior[S, M], name: String)(using codec: PayloadCodec[S], store: DurableStateStore, ct: ClassTag[M]): IO[ActorRef[M]]

Spawn a persistent actor

Spawn a persistent actor

Attributes

def terminate(actorRef: ActorRef[_]): IO[Unit]