| LocalActorRefProviderActorOf Method |
Actor factory with create-only semantics: will create an actor as
described by props with the given supervisor and path (may be different
in case of remote supervision). If systemService is true, deployment is
bypassed (local-only). If a value fordeploy is passed in, it should be
regarded as taking precedence over the nominally applicable settings,
but it should be overridable from external configuration; the lookup of
the latter can be suppressed by setting "lookupDeploy" to "false".
Namespace:
Akka.Actor
Assembly:
Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax public IInternalActorRef ActorOf(
ActorSystemImpl system,
Props props,
IInternalActorRef supervisor,
ActorPath path,
bool systemService,
Deploy deploy,
bool lookupDeploy,
bool async
)
abstract ActorOf :
system : ActorSystemImpl *
props : Props *
supervisor : IInternalActorRef *
path : ActorPath *
systemService : bool *
deploy : Deploy *
lookupDeploy : bool *
async : bool -> IInternalActorRef
override ActorOf :
system : ActorSystemImpl *
props : Props *
supervisor : IInternalActorRef *
path : ActorPath *
systemService : bool *
deploy : Deploy *
lookupDeploy : bool *
async : bool -> IInternalActorRef
Parameters
- system
- Type: Akka.Actor.InternalActorSystemImpl
TBD - props
- Type: Akka.ActorProps
TBD - supervisor
- Type: Akka.ActorIInternalActorRef
TBD - path
- Type: Akka.ActorActorPath
TBD - systemService
- Type: SystemBoolean
TBD - deploy
- Type: Akka.ActorDeploy
TBD - lookupDeploy
- Type: SystemBoolean
TBD - async
- Type: SystemBoolean
TBD
Return Value
Type:
IInternalActorRefTBD
Implements
IActorRefProviderActorOf(ActorSystemImpl, Props, IInternalActorRef, ActorPath, Boolean, Deploy, Boolean, Boolean)Exceptions Exception | Condition |
---|
ConfigurationException |
This exception can be thrown for a number of reasons. The following are some examples:
- non-routers
- The dispatcher in the given props is not configured for the given path.
- or
- There was a configuration problem while creating the given path with the dispatcher and mailbox from the given props
- routers
- The dispatcher in the given props is not configured for routees of the given path
- or
- The dispatcher in the given props is not configured for router of the given path
- or
- $There was a configuration problem while creating the given path with router dispatcher and mailbox and routee dispatcher and mailbox.
|
See Also