|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.extend.server.support.KernelScheduler
public class KernelScheduler
Simple scheduler adapter used by the server. It schedules tasks each second.
Field Summary | |
---|---|
protected ScheduledThreadPoolExecutor |
scheduler
Executor |
Constructor Summary | |
---|---|
KernelScheduler()
Empty constructor |
Method Summary | |
---|---|
void |
destroy()
Stops the executor |
ScheduledThreadPoolExecutor |
getScheduler()
Returns executor |
void |
remove(Runnable client)
Removes client from list of clients to be executed each second |
void |
schedule(Runnable client)
Schedules client for execution |
void |
setScheduler(ScheduledThreadPoolExecutor scheduler)
Sets executor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ScheduledThreadPoolExecutor scheduler
Constructor Detail |
---|
public KernelScheduler()
Method Detail |
---|
public void schedule(Runnable client)
schedule
in interface SimpleScheduler
client
- runnable clientpublic void remove(Runnable client)
remove
in interface SimpleScheduler
client
- client to be removedpublic void setScheduler(ScheduledThreadPoolExecutor scheduler)
scheduler
- executorpublic ScheduledThreadPoolExecutor getScheduler()
public void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |