Package akka.dispatch
Class ExecutionContexts$
- java.lang.Object
 - 
- akka.dispatch.ExecutionContexts$
 
 
- 
public class ExecutionContexts$ extends java.lang.ObjectExecutionContexts is the Java API for ExecutionContexts 
- 
- 
Field Summary
Fields Modifier and Type Field Description static ExecutionContexts$MODULE$Static reference to the singleton instance of this Scala object. 
- 
Constructor Summary
Constructors Constructor Description ExecutionContexts$() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description scala.concurrent.ExecutionContextExecutorfromExecutor(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.scala.concurrent.ExecutionContextExecutorfromExecutor(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.scala.concurrent.ExecutionContextExecutorServicefromExecutorService(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.scala.concurrent.ExecutionContextExecutorServicefromExecutorService(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.scala.concurrent.ExecutionContextExecutorglobal() 
 - 
 
- 
- 
Field Detail
- 
MODULE$
public static final ExecutionContexts$ MODULE$
Static reference to the singleton instance of this Scala object. 
 - 
 
- 
Method Detail
- 
fromExecutor
public 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.- Parameters:
 executor- the Executor which will be used for the ExecutionContext- Returns:
 - a new ExecutionContext
 
 
- 
fromExecutor
public 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.- Parameters:
 executor- the Executor which will be used for the ExecutionContexterrorReporter- a Procedure that will log any exceptions passed to it- Returns:
 - a new ExecutionContext
 
 
- 
fromExecutorService
public 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.- Parameters:
 executorService- the ExecutorService which will be used for the ExecutionContext- Returns:
 - a new ExecutionContext
 
 
- 
fromExecutorService
public 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.- Parameters:
 executorService- the ExecutorService which will be used for the ExecutionContexterrorReporter- a Procedure that will log any exceptions passed to it- Returns:
 - a new ExecutionContext
 
 
- 
global
public scala.concurrent.ExecutionContextExecutor global()
- Returns:
 - a reference to the global ExecutionContext
 
 
 - 
 
 -