Package org.apache.pekko.dispatch
Class ExecutionContexts$
java.lang.Object
org.apache.pekko.dispatch.ExecutionContexts$
ExecutionContexts is the Java API for ExecutionContexts
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ExecutionContexts$Static reference to the singleton instance of this Scala object.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionscala.concurrent.ExecutionContextExecutorfromExecutor(Executor executor) Returns a new ExecutionContextExecutor which will delegate execution to the underlying Executor, and which will use the default error reporter.scala.concurrent.ExecutionContextExecutorfromExecutor(Executor executor, Procedure<Throwable> errorReporter) Returns a new ExecutionContextExecutor which will delegate execution to the underlying Executor, and which will use the provided error reporter.scala.concurrent.ExecutionContextExecutorServicefromExecutorService(ExecutorService executorService) Returns a new ExecutionContextExecutorService which will delegate execution to the underlying ExecutorService, and which will use the default error reporter.scala.concurrent.ExecutionContextExecutorServicefromExecutorService(ExecutorService executorService, Procedure<Throwable> errorReporter) Returns a new ExecutionContextExecutorService which will delegate execution to the underlying ExecutorService, and which will use the provided error reporter.scala.concurrent.ExecutionContextExecutorglobal()
- 
Field Details- 
MODULE$Static reference to the singleton instance of this Scala object.
 
- 
- 
Constructor Details- 
ExecutionContexts$public ExecutionContexts$()
 
- 
- 
Method Details- 
fromExecutorReturns a new ExecutionContextExecutor which will delegate execution to the underlying Executor, and which will use the default error reporter.- Parameters:
- executor- the Executor which will be used for the ExecutionContext
- Returns:
- a new ExecutionContext
 
- 
fromExecutorpublic scala.concurrent.ExecutionContextExecutor fromExecutor(Executor executor, Procedure<Throwable> errorReporter) Returns a new ExecutionContextExecutor which will delegate execution to the underlying Executor, and which will use the provided error reporter.- Parameters:
- executor- the Executor which will be used for the ExecutionContext
- errorReporter- a Procedure that will log any exceptions passed to it
- Returns:
- a new ExecutionContext
 
- 
fromExecutorServicepublic scala.concurrent.ExecutionContextExecutorService fromExecutorService(ExecutorService executorService) Returns a new ExecutionContextExecutorService which will delegate execution to the underlying ExecutorService, and which will use the default error reporter.- Parameters:
- executorService- the ExecutorService which will be used for the ExecutionContext
- Returns:
- a new ExecutionContext
 
- 
fromExecutorServicepublic scala.concurrent.ExecutionContextExecutorService fromExecutorService(ExecutorService executorService, Procedure<Throwable> errorReporter) Returns a new ExecutionContextExecutorService which will delegate execution to the underlying ExecutorService, and which will use the provided error reporter.- Parameters:
- executorService- the ExecutorService which will be used for the ExecutionContext
- errorReporter- a Procedure that will log any exceptions passed to it
- Returns:
- a new ExecutionContext
 
- 
globalpublic scala.concurrent.ExecutionContextExecutor global()- Returns:
- a reference to the global ExecutionContext
 
 
-