|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectplay.Invoker
public class Invoker
Run some code in a Play! context
| 嵌套类摘要 | |
|---|---|
static class |
Invoker.DirectInvocation
A direct invocation (in the same thread than caller) |
static class |
Invoker.Invocation
An Invocation in something to run in a Play! |
static class |
Invoker.InvocationContext
The class/method that will be invoked by the current operation |
static class |
Invoker.Suspend
Throwable to indicate that the request must be suspended |
| 字段摘要 | |
|---|---|
static java.util.concurrent.ScheduledThreadPoolExecutor |
executor
Main executor for requests invocations. |
| 构造方法摘要 | |
|---|---|
Invoker()
|
|
| 方法摘要 | |
|---|---|
static java.util.concurrent.Future<?> |
invoke(Invoker.Invocation invocation)
Run the code in a new thread took from a thread pool. |
static java.util.concurrent.Future<?> |
invoke(Invoker.Invocation invocation,
long millis)
Run the code in a new thread after a delay |
static void |
invokeInThread(Invoker.DirectInvocation invocation)
Run the code in the same thread than caller. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static java.util.concurrent.ScheduledThreadPoolExecutor executor
| 构造方法详细信息 |
|---|
public Invoker()
| 方法详细信息 |
|---|
public static java.util.concurrent.Future<?> invoke(Invoker.Invocation invocation)
invocation - The code to run
public static java.util.concurrent.Future<?> invoke(Invoker.Invocation invocation,
long millis)
invocation - The code to runmillis - The time to wait before, in milliseconds
public static void invokeInThread(Invoker.DirectInvocation invocation)
invocation - The code to run
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||