Package org.apache.pekko.actor.typed
Class DispatcherSelector$
- java.lang.Object
-
- org.apache.pekko.actor.typed.DispatcherSelector$
-
- All Implemented Interfaces:
java.io.Serializable
public class DispatcherSelector$ extends java.lang.Object implements java.io.SerializableFactories forDispatcherSelectors which describe which thread pool shall be used to run the actor to which this configuration is applied. See the individual factory methods for details on the options.The default configuration if none of these options are present is to run the actor on the default
ActorSystemexecutor.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DispatcherSelector$MODULE$Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description DispatcherSelector$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DispatcherSelectorblocking()Run the actor on the default blocking dispatcher that is configured under default-blocking-io-dispatcherDispatcherSelectordefaultDispatcher()Java API: Run the actor on the defaultActorSystemexecutor.DispatcherSelectorfromConfig(java.lang.String path)Look up an executor definition in theActorSystemconfiguration.DispatcherSelectorsameAsParent()Run the actor on the same executor as the parent actor.
-
-
-
Field Detail
-
MODULE$
public static final DispatcherSelector$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
defaultDispatcher
public DispatcherSelector defaultDispatcher()
Java API: Run the actor on the defaultActorSystemexecutor.
-
blocking
public DispatcherSelector blocking()
Run the actor on the default blocking dispatcher that is configured under default-blocking-io-dispatcher
-
fromConfig
public DispatcherSelector fromConfig(java.lang.String path)
Look up an executor definition in theActorSystemconfiguration. ExecutorServices created in this fashion will be shut down when the ActorSystem terminates.
-
sameAsParent
public DispatcherSelector sameAsParent()
Run the actor on the same executor as the parent actor.- Returns:
-
-