|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectplay.Invoker.Invocation
play.jobs.Job<V>
V
- The job result type (if any)public class Job<V>
A job is an asynchronously executed unit of work
字段摘要 | |
---|---|
protected java.util.concurrent.ExecutorService |
executor
|
static java.lang.String |
invocationType
|
protected java.lang.Throwable |
lastException
|
protected long |
lastRun
|
protected boolean |
wasError
|
构造方法摘要 | |
---|---|
Job()
|
方法摘要 | |
---|---|
void |
_finally()
Things to do in all cases after the invocation. |
V |
call()
|
void |
doJob()
Here you do the job |
V |
doJobWithResult()
Here you do the job and return a result |
void |
every(int seconds)
Run this job every n seconds |
void |
every(java.lang.String delay)
Run this job every n seconds |
void |
execute()
Override this method |
Invoker.InvocationContext |
getInvocationContext()
|
F.Promise<V> |
in(int seconds)
Start this job in several seconds |
F.Promise<V> |
in(java.lang.String delay)
Start this job in several seconds |
F.Promise<V> |
now()
Start this job now (well ASAP) |
void |
onException(java.lang.Throwable e)
Things to do if the Invocation code thrown an exception |
void |
run()
It's time to execute. |
java.lang.String |
toString()
|
从类 play.Invoker.Invocation 继承的方法 |
---|
after, before, init, onSuccess, preInit, suspend |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
字段详细信息 |
---|
public static final java.lang.String invocationType
protected java.util.concurrent.ExecutorService executor
protected long lastRun
protected boolean wasError
protected java.lang.Throwable lastException
构造方法详细信息 |
---|
public Job()
方法详细信息 |
---|
public Invoker.InvocationContext getInvocationContext()
Invoker.Invocation
中的 getInvocationContext
public void doJob() throws java.lang.Exception
java.lang.Exception
public V doJobWithResult() throws java.lang.Exception
java.lang.Exception
public void execute() throws java.lang.Exception
Invoker.Invocation
复制的描述
Invoker.Invocation
中的 execute
java.lang.Exception
public F.Promise<V> now()
public F.Promise<V> in(java.lang.String delay)
public F.Promise<V> in(int seconds)
public void every(java.lang.String delay)
public void every(int seconds)
public void onException(java.lang.Throwable e)
Invoker.Invocation
复制的描述
Invoker.Invocation
中的 onException
public void run()
Invoker.Invocation
复制的描述
java.lang.Runnable
中的 run
Invoker.Invocation
中的 run
public V call()
java.util.concurrent.Callable<V>
中的 call
public void _finally()
Invoker.Invocation
复制的描述
Invoker.Invocation
中的 _finally
public java.lang.String toString()
java.lang.Object
中的 toString
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |