akka.actor.dsl
Interface Creators

All Known Implementing Classes:
ActorDSL, ActorDSL$

public interface Creators


Nested Class Summary
static interface Creators.Act
          This trait provides a DSL for writing the inner workings of an actor, e.g.
static interface Creators.ActWithStash
          Use this trait when defining an Actor with Stash, since just using actor()(new Act with Stash{}) will not be able to see the Stash component due to type erasure.
 
Method Summary
<T extends Actor>
ActorRef
actor(ActorRefFactory factory, scala.Function0<T> ctor, scala.reflect.ClassTag<T> evidence$4)
          Create an actor with an automatically generated name from the given thunk which must produce an Actor.
<T extends Actor>
ActorRef
actor(ActorRefFactory factory, java.lang.String name, scala.Function0<T> ctor, scala.reflect.ClassTag<T> evidence$3)
          Create an actor from the given thunk which must produce an Actor.
<T extends Actor>
ActorRef
actor(scala.Function0<T> ctor, scala.reflect.ClassTag<T> evidence$1, ActorRefFactory factory)
          Create an actor from the given thunk which must produce an Actor.
<T extends Actor>
ActorRef
actor(java.lang.String name, scala.Function0<T> ctor, scala.reflect.ClassTag<T> evidence$2, ActorRefFactory factory)
          Create an actor from the given thunk which must produce an Actor.
 Props mkProps(java.lang.Class<?> classOfActor, scala.Function0<Actor> ctor)
           
 

Method Detail

mkProps

Props mkProps(java.lang.Class<?> classOfActor,
              scala.Function0<Actor> ctor)

actor

<T extends Actor> ActorRef actor(scala.Function0<T> ctor,
                                 scala.reflect.ClassTag<T> evidence$1,
                                 ActorRefFactory factory)
Create an actor from the given thunk which must produce an Actor.

Parameters:
ctor - is a by-name argument which captures an Actor factory; do not make the generated object accessible to code outside and do not return the same object upon subsequent invocations.
factory - is an implicit ActorRefFactory, which can either be an ActorSystem or an ActorContext, where the latter is always implicitly available within an Actor.

actor

<T extends Actor> ActorRef actor(java.lang.String name,
                                 scala.Function0<T> ctor,
                                 scala.reflect.ClassTag<T> evidence$2,
                                 ActorRefFactory factory)
Create an actor from the given thunk which must produce an Actor.

Parameters:
name - is the name, which must be unique within the context of its parent.
ctor - is a by-name argument which captures an Actor factory; do not make the generated object accessible to code outside and do not return the same object upon subsequent invocations.
factory - is an implicit ActorRefFactory, which can either be an ActorSystem or an ActorContext, where the latter is always implicitly available within an Actor.

actor

<T extends Actor> ActorRef actor(ActorRefFactory factory,
                                 java.lang.String name,
                                 scala.Function0<T> ctor,
                                 scala.reflect.ClassTag<T> evidence$3)
Create an actor from the given thunk which must produce an Actor.

Parameters:
name - is the name, which must be unique within the context of its parent; defaults to null which will assign a name automatically.
ctor - is a by-name argument which captures an Actor factory; do not make the generated object accessible to code outside and do not return the same object upon subsequent invocations.
factory - is an implicit ActorRefFactory, which can either be an ActorSystem or an ActorContext, where the latter is always implicitly available within an Actor.

actor

<T extends Actor> ActorRef actor(ActorRefFactory factory,
                                 scala.Function0<T> ctor,
                                 scala.reflect.ClassTag<T> evidence$4)
Create an actor with an automatically generated name from the given thunk which must produce an Actor.

Parameters:
ctor - is a by-name argument which captures an Actor factory; do not make the generated object accessible to code outside and do not return the same object upon subsequent invocations.
factory - is an implicit ActorRefFactory, which can either be an ActorSystem or an ActorContext, where the latter is always implicitly available within an Actor.