Instance Constructors
-
new
Props
(actorClass: Class[_ <: akka.actor.Actor])
-
-
new
Props
()
-
new
Props
(creator: () ⇒ Actor, dispatcher: String, routerConfig: RouterConfig, deploy: Deploy)
Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
def
asInstanceOf
[T0]
: T0
-
def
canEqual
(arg0: Any): Boolean
-
def
clone
(): AnyRef
-
val
creator
: () ⇒ Actor
-
val
deploy
: Deploy
-
val
dispatcher
: String
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
def
getClass
(): java.lang.Class[_]
-
def
hashCode
(): Int
-
def
isInstanceOf
[T0]
: Boolean
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
def
productArity
: Int
-
def
productElement
(arg0: Int): Any
-
def
productIterator
: Iterator[Any]
-
def
productPrefix
: String
-
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toString
(): String
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
-
def
withCreator
(c: Class[_ <: akka.actor.Actor]): Props
-
-
def
withCreator
(c: ⇒ Actor): Props
-
-
def
withDispatcher
(d: String): Props
-
Deprecated Value Members
-
def
productElements
: Iterator[Any]
Inherited from Serializable
Inherited from Serializable
Inherited from Product
Inherited from Equals
Inherited from AnyRef
Inherited from Any
Props is a ActorRef configuration object, that is thread safe and fully sharable. Used when creating new actors through;
ActorSystem.actorOfandActorContext.actorOf.Examples on Scala API:
Examples on Java API:
Props props = new Props(); Props props = new Props(MyActor.class); Props props = new Props(new UntypedActorFactory() { public UntypedActor create() { return new MyActor(); } }); Props props = new Props().withCreator(new UntypedActorFactory() { ... }); Props props = new Props(MyActor.class).withRouter(new RoundRobinRouter(..));