|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CoreTaskExecutor
| Method Summary | |
|---|---|
void |
awaitCompletition(CoreTask task)
Wait for task with specified time (if interrupted, simple return with no really completition guarantee). |
void |
awaitCompletition(CoreTask task,
long amount,
TimeUnit units)
Wait for task with infinite time (if interrupted, simple return with no really completition guarantee). |
boolean |
awaitTermination(long timeout,
TimeUnit unit)
Awaits for shutdown specified amount of time. |
void |
cancel(CoreTask task)
Cancel task with infinite wait (if interrupted, simple return with no really cancel guarantee). |
void |
cancel(CoreTask task,
long amount,
TimeUnit units)
Cancel with specified waittime. |
boolean |
submit(CoreTask task)
Method submits task for execution with default crash handler |
boolean |
submit(CoreTask task,
CoreTaskExecutionCallback handler)
Method submit task for execution with userdefinded crash handler. |
| Method Detail |
|---|
boolean submit(CoreTask task)
task - of type CoreTask
boolean submit(CoreTask task,
CoreTaskExecutionCallback handler)
task - of type CoreTaskhandler - of type CoreTaskExecutionCallback (if null, default will be used).
void cancel(CoreTask task,
long amount,
TimeUnit units)
throws InterruptedException
task - of type CoreTaskamount - of type longunits - of type TimeUnit
InterruptedException - whenvoid cancel(CoreTask task)
task - of type CoreTask
void awaitCompletition(CoreTask task)
throws InterruptedException
task - of type CoreTask
InterruptedException - on interrupt
void awaitCompletition(CoreTask task,
long amount,
TimeUnit units)
throws InterruptedException
task - of type CoreTaskamount - amount of TimeUnitsunits - TimeUnits
InterruptedException - on interrupt
boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
timeout - of type longunit - of type TimeUnit
InterruptedException - when
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||