Interface IActorRefFactory
Interface IActorRefFactory
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public interface IActorRefFactory
Methods
| Improve this Doc View SourceActorOf(Props, String)
Creates a new child actor of this context with the given name, which must not start with "$". If the given name is already in use, then an InvalidActorNameException is thrown.
Declaration
IActorRef ActorOf(Props props, string name = null)
Parameters
Type | Name | Description |
---|---|---|
Props | props | The props used to create this actor. |
String | name | Optional. The name of this actor. |
Returns
Type | Description |
---|---|
IActorRef | A newly created actor that uses the specified props. |
Exceptions
Type | Condition |
---|---|
InvalidActorNameException | Thrown if the given name is invalid or already in use |
ConfigurationException | Thrown if deployment, dispatcher or mailbox configuration is wrong |
ActorSelection(ActorPath)
Constructs an ActorSelection from the given path, which is parsed for wildcards (these are replaced by regular expressions internally). No attempt is made to verify the existence of any part of the supplied path, it is recommended to send a message and gather the replies in order to resolve the matching set of actors.
Declaration
ActorSelection ActorSelection(ActorPath actorPath)
Parameters
Type | Name | Description |
---|---|---|
ActorPath | actorPath | The actor path used as the base of the actor selection. |
Returns
Type | Description |
---|---|
ActorSelection | An ActorSelection based on the specified |
ActorSelection(String)
Constructs an ActorSelection from the given path, which is parsed for wildcards (these are replaced by regular expressions internally). No attempt is made to verify the existence of any part of the supplied path, it is recommended to send a message and gather the replies in order to resolve the matching set of actors.
Declaration
ActorSelection ActorSelection(string actorPath)
Parameters
Type | Name | Description |
---|---|---|
String | actorPath | The actor path used as the base of the actor selection. |
Returns
Type | Description |
---|---|
ActorSelection | An ActorSelection based on the specified |