akka.actor
Class Props$

java.lang.Object
  extended by akka.actor.Props$
All Implemented Interfaces:
java.io.Serializable

public class Props$
extends java.lang.Object
implements scala.Serializable

Factory for Props instances.

Props is a ActorRef configuration object, that is immutable, so it is thread safe and fully sharable.

Used when creating new actors through ActorSystem.actorOf and ActorContext.actorOf.

See Also:
Serialized Form

Field Summary
static Props$ MODULE$
          Static reference to the singleton instance of this Scala object.
 
Constructor Summary
Props$()
           
 
Method Summary
 Props apply(java.lang.Class<?> clazz, scala.collection.Seq<java.lang.Object> args)
           
<T extends Actor>
Props
apply(scala.reflect.ClassTag<T> evidence$1)
           
<T extends Actor>
Props
apply(scala.Function0<T> creator, scala.reflect.ClassTag<T> evidence$2)
           
 Props create(java.lang.Class<?> clazz, java.lang.Object... args)
          Java API: create a Props given a class and its constructor arguments.
 Props create(java.lang.Class<?> clazz, scala.collection.Seq<java.lang.Object> args)
           
<T extends Actor>
Props
create(java.lang.Class<T> actorClass, Creator<T> creator)
          Create new Props from the given Creator with the type set to the given actorClass.
<T extends Actor>
Props
create(Creator<T> creator)
          Create new Props from the given Creator.
 scala.Function0<Actor> defaultCreator()
          The defaultCreator, simply throws an UnsupportedOperationException when applied, which is used when creating a Props
 Deploy defaultDeploy()
          The default Deploy instance which is used when creating a Props
 RouterConfig defaultRoutedProps()
          The defaultRoutedProps is NoRouter which is used when creating a Props
 Props empty()
          A Props instance whose creator will create an actor that doesn't respond to any message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODULE$

public static final Props$ MODULE$
Static reference to the singleton instance of this Scala object.

Constructor Detail

Props$

public Props$()
Method Detail

create

public Props create(java.lang.Class<?> clazz,
                    java.lang.Object... args)
Java API: create a Props given a class and its constructor arguments.

Parameters:
clazz - (undocumented)
args - (undocumented)
Returns:
(undocumented)

defaultCreator

public final scala.Function0<Actor> defaultCreator()
The defaultCreator, simply throws an UnsupportedOperationException when applied, which is used when creating a Props

Returns:
(undocumented)

defaultRoutedProps

public final RouterConfig defaultRoutedProps()
The defaultRoutedProps is NoRouter which is used when creating a Props

Returns:
(undocumented)

defaultDeploy

public final Deploy defaultDeploy()
The default Deploy instance which is used when creating a Props

Returns:
(undocumented)

empty

public final Props empty()
A Props instance whose creator will create an actor that doesn't respond to any message

Returns:
(undocumented)

apply

public <T extends Actor> Props apply(scala.reflect.ClassTag<T> evidence$1)

apply

public <T extends Actor> Props apply(scala.Function0<T> creator,
                                     scala.reflect.ClassTag<T> evidence$2)

apply

public Props apply(java.lang.Class<?> clazz,
                   scala.collection.Seq<java.lang.Object> args)

create

public Props create(java.lang.Class<?> clazz,
                    scala.collection.Seq<java.lang.Object> args)

create

public <T extends Actor> Props create(Creator<T> creator)
Create new Props from the given Creator.

You can not use a Java 8 lambda with this method since the generated classes don't carry enough type information.

Use the Props.create(actorClass, creator) instead.

Parameters:
creator - (undocumented)
Returns:
(undocumented)

create

public <T extends Actor> Props create(java.lang.Class<T> actorClass,
                                      Creator<T> creator)
Create new Props from the given Creator with the type set to the given actorClass.

Parameters:
actorClass - (undocumented)
creator - (undocumented)
Returns:
(undocumented)