public interface InjectedActorSupport
Modifier and Type | Method and Description |
---|---|
akka.actor.ActorContext |
context()
Context method expected to be implemented by
AbstractActor . |
default akka.actor.ActorRef |
injectedChild(java.util.function.Supplier<akka.actor.Actor> create,
java.lang.String name)
Create an injected child actor.
|
default akka.actor.ActorRef |
injectedChild(java.util.function.Supplier<akka.actor.Actor> create,
java.lang.String name,
java.util.function.Function<akka.actor.Props,akka.actor.Props> props)
Create an injected child actor.
|
default akka.actor.ActorRef injectedChild(java.util.function.Supplier<akka.actor.Actor> create, java.lang.String name, java.util.function.Function<akka.actor.Props,akka.actor.Props> props)
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.default akka.actor.ActorRef injectedChild(java.util.function.Supplier<akka.actor.Actor> create, java.lang.String name)
create
- A function to create the actor.name
- The name of the actor.akka.actor.ActorContext context()
AbstractActor
.