play.libs
Class HttpExecution

java.lang.Object
  extended by play.libs.HttpExecution

public class HttpExecution
extends java.lang.Object

ExecutionContexts that preserve the current thread's context ClassLoader and Http.Context.


Constructor Summary
HttpExecution()
           
 
Method Summary
static scala.concurrent.ExecutionContextExecutor defaultContext()
          An ExecutionContext that executes work on the application's internal ActorSystem dispatcher.
static scala.concurrent.ExecutionContextExecutor fromThread(scala.concurrent.ExecutionContext delegate)
          An ExecutionContext that executes work on the given ExecutionContext.
static scala.concurrent.ExecutionContextExecutor orderedContext()
          An ExecutionContext that executes work for a given Http.Context in the same actor each time, ensuring ordered execution of that work.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpExecution

public HttpExecution()
Method Detail

fromThread

public static scala.concurrent.ExecutionContextExecutor fromThread(scala.concurrent.ExecutionContext 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.


defaultContext

public static scala.concurrent.ExecutionContextExecutor defaultContext()
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.


orderedContext

public static scala.concurrent.ExecutionContextExecutor orderedContext()
An ExecutionContext that executes work for a given Http.Context in the same actor each time, ensuring ordered execution of that work. The current thread's context ClassLoader and Http.Context are captured when this method is called and preserved for all executed tasks. This ExecutionContext gives the legacy behaviour of Play's F.Promise class.