public class ExecutionContexts
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ExecutionContexts.sameThreadExecutionContext$
WARNING: Not A General Purpose ExecutionContext!
|
Constructor and Description |
---|
ExecutionContexts() |
Modifier and Type | Method and Description |
---|---|
static scala.concurrent.ExecutionContextExecutor |
fromExecutor(java.util.concurrent.Executor executor)
Returns a new ExecutionContextExecutor which will delegate execution to the underlying Executor,
and which will use the default error reporter.
|
static scala.concurrent.ExecutionContextExecutor |
fromExecutor(java.util.concurrent.Executor executor,
Procedure<java.lang.Throwable> errorReporter)
Returns a new ExecutionContextExecutor which will delegate execution to the underlying Executor,
and which will use the provided error reporter.
|
static scala.concurrent.ExecutionContextExecutorService |
fromExecutorService(java.util.concurrent.ExecutorService executorService)
Returns a new ExecutionContextExecutorService which will delegate execution to the underlying ExecutorService,
and which will use the default error reporter.
|
static scala.concurrent.ExecutionContextExecutorService |
fromExecutorService(java.util.concurrent.ExecutorService executorService,
Procedure<java.lang.Throwable> errorReporter)
Returns a new ExecutionContextExecutorService which will delegate execution to the underlying ExecutorService,
and which will use the provided error reporter.
|
static scala.concurrent.ExecutionContextExecutor |
global() |
public static scala.concurrent.ExecutionContextExecutor fromExecutor(java.util.concurrent.Executor executor)
executor
- the Executor which will be used for the ExecutionContextpublic static scala.concurrent.ExecutionContextExecutor fromExecutor(java.util.concurrent.Executor executor, Procedure<java.lang.Throwable> errorReporter)
executor
- the Executor which will be used for the ExecutionContexterrorReporter
- a Procedure that will log any exceptions passed to itpublic static scala.concurrent.ExecutionContextExecutorService fromExecutorService(java.util.concurrent.ExecutorService executorService)
executorService
- the ExecutorService which will be used for the ExecutionContextpublic static scala.concurrent.ExecutionContextExecutorService fromExecutorService(java.util.concurrent.ExecutorService executorService, Procedure<java.lang.Throwable> errorReporter)
executorService
- the ExecutorService which will be used for the ExecutionContexterrorReporter
- a Procedure that will log any exceptions passed to itpublic static scala.concurrent.ExecutionContextExecutor global()