Package play.libs.pekko
Interface InjectedActorSupport
public interface InjectedActorSupport
Support for creating injected child actors.
-
Method Summary
Modifier and TypeMethodDescriptioncontext()Context method expected to be implemented byAbstractActor.default ActorRefinjectedChild(Supplier<Actor> create, String name) Create an injected child actor.default ActorRefCreate an injected child actor.
-
Method Details
-
injectedChild
Create an injected child actor.- Parameters:
create- A function to create the actor.name- The name of the actor.props- A function to provide props for the actor. The props passed in will just describe how to create the actor, this function can be used to provide additional configuration such as router and dispatcher configuration.- Returns:
- An ActorRef for the created actor.
-
injectedChild
Create an injected child actor.- Parameters:
create- A function to create the actor.name- The name of the actor.- Returns:
- An ActorRef for the created actor.
-
context
ActorContext context()Context method expected to be implemented byAbstractActor.- Returns:
- the ActorContext.
-