|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sca4j.host.work.DefaultPausableWork
public abstract class DefaultPausableWork
Default implementation of the pausable work.
| Constructor Summary | |
|---|---|
DefaultPausableWork()
Non-daemon constructor. |
|
DefaultPausableWork(boolean daemon)
Allows to set whether the work is daemon or not. |
|
| Method Summary | |
|---|---|
protected abstract void |
execute()
Executes the job. |
boolean |
isDaemon()
Checks whether the work is daemon. |
void |
run()
Runs the job. |
void |
stop()
Terminates the job. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultPausableWork()
public DefaultPausableWork(boolean daemon)
daemon - Whether this worker is a daemon or not.| Method Detail |
|---|
public final void stop()
stop in interface PausableWorkpublic final void run()
run in interface java.lang.Runnablepublic boolean isDaemon()
protected abstract void execute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||