|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.roeschter.jsl.SimpleStopper
Most simple version of Stopable. Simply call ServiceStopper.stop( new SimpleStopper() );
Constructor Summary | |
SimpleStopper()
|
Method Summary | |
static void |
main(java.lang.String[] argv)
|
void |
onServiceStop()
Called when the service is about to stop. |
int |
timeToWait()
How long should the ServiceStopper wait (in milliseconds) for the stop thread to die? 0 waits for ever. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleStopper()
Method Detail |
public void onServiceStop()
Stopable
onServiceStop
in interface Stopable
public int timeToWait()
Stopable
timeToWait
in interface Stopable
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |