|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sca4j.threadpool.ThreadPoolWorkScheduler
public class ThreadPoolWorkScheduler
Thread pool based implementation of the work scheduler.
| Field Summary | |
|---|---|
boolean |
pauseOnStart
|
int |
size
|
| Constructor Summary | |
|---|---|
ThreadPoolWorkScheduler()
|
|
| Method Summary | ||
|---|---|---|
void |
init()
Initializes the thread-pool. |
|
|
scheduleWork(T work)
|
|
void |
stop()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int size
public boolean pauseOnStart
| Constructor Detail |
|---|
public ThreadPoolWorkScheduler()
| Method Detail |
|---|
public void init()
public <T extends org.sca4j.host.work.DefaultPausableWork> void scheduleWork(T work)
scheduleWork in interface org.sca4j.host.work.WorkScheduler
public void stop()
throws java.lang.InterruptedException
java.lang.InterruptedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||