Package akka.actor.typed
Class DispatcherSelector
- java.lang.Object
-
- akka.actor.typed.Props
-
- akka.actor.typed.DispatcherSelector
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
- Direct Known Subclasses:
PropsImpl.DispatcherDefault
,PropsImpl.DispatcherFromConfig
,PropsImpl.DispatcherSameAsParent
public abstract class DispatcherSelector extends Props
Not for user extension.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DispatcherSelector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DispatcherSelector
blocking()
Run the actor on the default blocking dispatcher that is configured under default-blocking-io-dispatcherstatic DispatcherSelector
defaultDispatcher()
Java API: Run the actor on the defaultActorSystem
executor.static DispatcherSelector
fromConfig(java.lang.String path)
Look up an executor definition in theActorSystem
configuration.static DispatcherSelector
sameAsParent()
Run the actor on the same executor as the parent actor.-
Methods inherited from class akka.actor.typed.Props
empty, withDispatcherDefault, withDispatcherFromConfig, withDispatcherSameAsParent
-
-
-
-
Method Detail
-
defaultDispatcher
public static DispatcherSelector defaultDispatcher()
Java API: Run the actor on the defaultActorSystem
executor.
-
blocking
public static DispatcherSelector blocking()
Run the actor on the default blocking dispatcher that is configured under default-blocking-io-dispatcher
-
fromConfig
public static DispatcherSelector fromConfig(java.lang.String path)
Look up an executor definition in theActorSystem
configuration. ExecutorServices created in this fashion will be shut down when the ActorSystem terminates.
-
sameAsParent
public static DispatcherSelector sameAsParent()
Run the actor on the same executor as the parent actor.- Returns:
-
-