/** * An ExecutionContext that executes work on the given ExecutionContext. The * current thread's context ClassLoader and Http.Context are captured when * this method is called and preserved for all executed tasks. * * @param delegate the delegate execution context. * @return the execution context wrapped in an {@link play.libs.concurrent.HttpExecutionContext}. */ public static ExecutionContextExecutor fromThread(ExecutionContext delegate) { return HttpExecutionContext.fromThread(delegate); }
/** * An ExecutionContext that executes work on the given ExecutionContext. The * current thread's context ClassLoader and Http.Context are captured when * this method is called and preserved for all executed tasks. * * @param delegate the delegate execution context. * @return the execution context wrapped in an {@link play.libs.concurrent.HttpExecutionContext}. */ public static ExecutionContextExecutor fromThread(Executor delegate) { return HttpExecutionContext.fromThread(delegate); }
/** * An ExecutionContext that executes work on the given ExecutionContext. The * current thread's context ClassLoader and Http.Context are captured when * this method is called and preserved for all executed tasks. * * @param delegate the delegate execution context. * @return the execution context wrapped in an {@link play.libs.concurrent.HttpExecutionContext}. */ public static ExecutionContextExecutor fromThread(Executor delegate) { return HttpExecutionContext.fromThread(delegate); }
/** * An ExecutionContext that executes work on the given ExecutionContext. The * current thread's context ClassLoader and Http.Context are captured when * this method is called and preserved for all executed tasks. */ public static ExecutionContextExecutor fromThread(ExecutionContext delegate) { return HttpExecutionContext.fromThread(delegate); }
/** * An ExecutionContext that executes work on the given ExecutionContext. The * current thread's context ClassLoader and Http.Context are captured when * this method is called and preserved for all executed tasks. * * @param delegate the delegate execution context. * @return the execution context wrapped in an {@link play.libs.concurrent.HttpExecutionContext}. */ public static ExecutionContextExecutor fromThread(Executor delegate) { return HttpExecutionContext.fromThread(delegate); }
/** * An ExecutionContext that executes work on the given ExecutionContext. The * current thread's context ClassLoader and Http.Context are captured when * this method is called and preserved for all executed tasks. * * @param delegate the delegate execution context. * @return the execution context wrapped in an {@link play.libs.concurrent.HttpExecutionContext}. */ public static ExecutionContextExecutor fromThread(ExecutionContext delegate) { return HttpExecutionContext.fromThread(delegate); }
/** * An ExecutionContext that executes work on the given ExecutionContext. The * current thread's context ClassLoader and Http.Context are captured when * this method is called and preserved for all executed tasks. * * @param delegate the delegate execution context. * @return the execution context wrapped in an {@link play.libs.concurrent.HttpExecutionContext}. */ public static ExecutionContextExecutor fromThread(ExecutionContext delegate) { return HttpExecutionContext.fromThread(delegate); }
/** * An ExecutionContext that executes work on the application's internal * ActorSystem dispatcher. The current thread's context ClassLoader and * Http.Context are captured when this method is called and preserved * for all executed tasks. */ public static ExecutionContextExecutor defaultContext() { return HttpExecutionContext.fromThread(Execution.internalContext()); }