Class DispatcherSelector

java.lang.Object
org.apache.pekko.actor.typed.Props
org.apache.pekko.actor.typed.DispatcherSelector
All Implemented Interfaces:
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:
  • Constructor Details

    • DispatcherSelector

      public DispatcherSelector()
  • Method Details

    • defaultDispatcher

      public static DispatcherSelector defaultDispatcher()
      Java API: Run the actor on the default ActorSystem 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(String path)
      Look up an executor definition in the ActorSystem 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: