public final class Props<T>
extends java.lang.Object
implements scala.Product, scala.Serializable
Behavior
so that it can become an Actor.Constructor and Description |
---|
Props(scala.Function0<Behavior<T>> creator,
akka.actor.Deploy deploy) |
Modifier and Type | Method and Description |
---|---|
static <T> Props<T> |
apply(scala.Function0<Behavior<T>> block)
Create a Props instance from a block of code that creates a
Behavior . |
static <T> Props<T> |
apply(akka.actor.Props p)
INTERNAL API.
|
scala.Function0<Behavior<T>> |
creator() |
akka.actor.Deploy |
deploy() |
static <T> Props<T> |
empty()
Props for a Behavior that just ignores all messages.
|
static <T> akka.actor.Props |
untyped(Props<T> p)
INTERNAL API.
|
Props<T> |
withDeploy(akka.actor.Deploy d) |
Props<T> |
withDispatcher(java.lang.String d) |
Props<T> |
withMailbox(java.lang.String m) |
Props<T> |
withRouter(akka.routing.RouterConfig r) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static <T> Props<T> apply(scala.Function0<Behavior<T>> block)
Behavior
.
FIXME: investigate the pros and cons of making this take an explicit function instead of a by-name argument
block
- (undocumented)public static <T> Props<T> empty()
public static <T> akka.actor.Props untyped(Props<T> p)
p
- (undocumented)public static <T> Props<T> apply(akka.actor.Props p)
p
- (undocumented)public akka.actor.Deploy deploy()