Scala API: create a Props given a class and its constructor arguments.
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.
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.
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
.
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.
Create new Props from the given akka.japi.Creator.
Java API: create a Props given a class and its constructor arguments.
Java API: create a Props given a class and its constructor arguments.
The default Props instance, uses the settings from the Props object starting with default*.
The defaultCreator, simply throws an UnsupportedOperationException when applied, which is used when creating a Props
The default Deploy instance which is used when creating a Props
The defaultRoutedProps is NoRouter which is used when creating a Props
A Props instance whose creator will create an actor that doesn't respond to any message
The deprecated legacy constructor.
The deprecated legacy constructor.
(Since version 2.2) use Props.withDispatcher and friends
Returns a Props that has default values except for "creator" which will be a function that creates an instance using the supplied thunk.
Returns a Props that has default values except for "creator" which will be a function that creates an instance using the supplied thunk.
(Since version 2.2) give class and arguments instead
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.
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.
(Since version 2.2) use creator with ClassTag
The deprecated legacy extractor.
The deprecated legacy extractor.
(Since version 2.2) use three-argument version
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
andActorContext.actorOf
.