public class Akka
extends java.lang.Object
Constructor and Description |
---|
Akka() |
Modifier and Type | Method and Description |
---|---|
static <T extends akka.actor.Actor> |
providerOf(java.lang.Class<T> actorClass,
java.lang.String name)
Create a provider for an actor implemented by the given class, with the given name.
|
static <T extends akka.actor.Actor> |
providerOf(java.lang.Class<T> actorClass,
java.lang.String name,
java.util.function.Function<akka.actor.Props,akka.actor.Props> props)
Create a provider for an actor implemented by the given class, with the given name.
|
static akka.actor.ActorSystem |
system()
Deprecated.
Please use "@Inject ActorSystem actorSystem", since 2.5.0
|
@Deprecated public static akka.actor.ActorSystem system()
public static <T extends akka.actor.Actor> javax.inject.Provider<akka.actor.ActorRef> providerOf(java.lang.Class<T> actorClass, java.lang.String name, java.util.function.Function<akka.actor.Props,akka.actor.Props> props)
actorClass
- The class that implements 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.public static <T extends akka.actor.Actor> javax.inject.Provider<akka.actor.ActorRef> providerOf(java.lang.Class<T> actorClass, java.lang.String name)
actorClass
- The class that implements the actor.name
- The name of the actor.