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:
Serializable
,scala.Equals
,scala.Product
- Direct Known Subclasses:
PropsImpl.DispatcherDefault
,PropsImpl.DispatcherFromConfig
,PropsImpl.DispatcherSameAsParent
Not for user extension.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DispatcherSelector
blocking()
Run the actor on the default blocking dispatcher that is configured under default-blocking-io-dispatcherstatic DispatcherSelector
Java API: Run the actor on the defaultActorSystem
executor.static DispatcherSelector
fromConfig
(String path) Look up an executor definition in theActorSystem
configuration.static DispatcherSelector
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
DispatcherSelector
public DispatcherSelector()
-
-
Method Details
-
defaultDispatcher
Java API: Run the actor on the defaultActorSystem
executor. -
blocking
Run the actor on the default blocking dispatcher that is configured under default-blocking-io-dispatcher -
fromConfig
Look up an executor definition in theActorSystem
configuration. ExecutorServices created in this fashion will be shut down when the ActorSystem terminates. -
sameAsParent
Run the actor on the same executor as the parent actor.- Returns:
-