Package org.apache.pekko.actor.typed
Class DispatcherSelector
- java.lang.Object
-
- org.apache.pekko.actor.typed.Props
-
- org.apache.pekko.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 DispatcherSelectorblocking()Run the actor on the default blocking dispatcher that is configured under default-blocking-io-dispatcherstatic DispatcherSelectordefaultDispatcher()Java API: Run the actor on the defaultActorSystemexecutor.static DispatcherSelectorfromConfig(java.lang.String path)Look up an executor definition in theActorSystemconfiguration.static DispatcherSelectorsameAsParent()Run the actor on the same executor as the parent actor.-
Methods inherited from class org.apache.pekko.actor.typed.Props
empty, withDispatcherDefault, withDispatcherFromConfig, withDispatcherSameAsParent, withMailboxFromConfig
-
-
-
-
Method Detail
-
defaultDispatcher
public static DispatcherSelector defaultDispatcher()
Java API: Run the actor on the defaultActorSystemexecutor.
-
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 theActorSystemconfiguration. 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:
-
-