Package play
Class Invoker
- java.lang.Object
-
- play.Invoker
-
public class Invoker extends java.lang.ObjectRun some code in a Play! context
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.concurrent.ScheduledThreadPoolExecutorexecutorMain executor for requests invocations.
-
Constructor Summary
Constructors Constructor Description Invoker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.Future<?>invoke(PlayHandler.NettyInvocation invocation)Run the code in a new thread took from a thread pool.
-
-
-
Method Detail
-
invoke
public java.util.concurrent.Future<?> invoke(PlayHandler.NettyInvocation invocation)
Run the code in a new thread took from a thread pool.- Parameters:
invocation- The code to run- Returns:
- The future object, to know when the task is completed
-
-