|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.smaxe.me.core.AsyncWorker
public final class AsyncWorker
AsyncWorker
- ExecutorService
implementation that
executes tasks one by one asynchronously, i.e. in the separate thread.
Constructor Summary | |
---|---|
AsyncWorker()
Constructor. |
|
AsyncWorker(java.lang.String name)
Creates Worker . |
|
AsyncWorker(java.lang.String name,
int priority)
Constructor. |
Method Summary | |
---|---|
void |
execute(java.lang.Runnable task)
Executes the given task at some time in the future. |
void |
shutdown()
Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsyncWorker(java.lang.String name, int priority)
name
- worker namepriority
- worker thread prioritypublic AsyncWorker(java.lang.String name)
Worker
.
name
- worker namepublic AsyncWorker()
Method Detail |
---|
public void execute(java.lang.Runnable task)
Executor
execute
in interface Executor
task
- task to executepublic void shutdown()
ExecutorService
shutdown
in interface ExecutorService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |