|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.actor.Props$
public class Props$
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)
Scala API: create a Props given a class and its constructor arguments. |
|
|
apply(scala.reflect.ClassTag<T> evidence$1)
Scala API: Returns a Props that has default values except for "creator" which will be a function that creates an instance of the supplied type using the default constructor. |
|
Props |
apply(Creator<? extends Actor> creator)
Returns a Props that has default values except for "creator" which will be a function that creates an instance using the supplied thunk. |
|
protected Props |
apply(scala.Function0<Actor> creator)
Scala API: Returns a Props that has default values except for "creator" which will be a function that creates an instance using the supplied thunk. |
|
Props |
apply(scala.Function0<Actor> creator,
java.lang.String dispatcher,
RouterConfig routerConfig,
Deploy deploy)
The deprecated legacy constructor. |
|
|
apply(scala.Function0<T> creator,
scala.reflect.ClassTag<T> evidence$2)
Scala API: Returns a Props that has default values except for "creator" which will be a function that creates an instance using the supplied thunk. |
|
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)
Java API: create a Props given a class and its constructor arguments. |
|
|
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 |
|
scala.Option<scala.Tuple4<scala.Function0<Actor>,java.lang.String,RouterConfig,Deploy>> |
unapply(Props p,
int dummy)
The deprecated legacy extractor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Props$ MODULE$
Constructor Detail |
---|
public Props$()
Method Detail |
---|
public Props create(java.lang.Class<?> clazz, java.lang.Object... args)
public final scala.Function0<Actor> defaultCreator()
public final RouterConfig defaultRoutedProps()
public final Deploy defaultDeploy()
public final Props empty()
public <T extends Actor> Props apply(scala.reflect.ClassTag<T> evidence$1)
protected Props apply(scala.Function0<Actor> creator)
public <T extends Actor> Props apply(scala.Function0<T> creator, scala.reflect.ClassTag<T> evidence$2)
CAVEAT: Required mailbox type cannot be detected when using anonymous mixin composition
when creating the instance. For example, the following will not detect the need for
DequeBasedMessageQueueSemantics
as defined in Stash
:
'Props(new Actor with Stash { ... })
Instead you must create a named class that mixin the trait,
e.g. class MyActor extends Actor with Stash
.
public Props apply(Creator<? extends Actor> creator)
public Props apply(scala.Function0<Actor> creator, java.lang.String dispatcher, RouterConfig routerConfig, Deploy deploy)
public scala.Option<scala.Tuple4<scala.Function0<Actor>,java.lang.String,RouterConfig,Deploy>> unapply(Props p, int dummy)
public Props apply(java.lang.Class<?> clazz, scala.collection.Seq<java.lang.Object> args)
public Props create(java.lang.Class<?> clazz, scala.collection.Seq<java.lang.Object> args)
public <T extends Actor> Props create(Creator<T> creator)
Creator
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |