|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.javatest.util.ExitCount
public class ExitCount
ExitCount can be used by a family of cooperating objects (windows?) to cause the process to exit when the last object is destroyed.
Constructor Summary | |
---|---|
ExitCount()
|
Method Summary | |
---|---|
static void |
dec()
Decrement the count; if it reaches zero, the process will be forcibly exited. |
static boolean |
dec(boolean autoExitIfZero,
int exitCode)
Decrement the count; if it reaches zero, the process will optionally be exited. |
static void |
inc()
Increment the count to prevent the process from exiting. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExitCount()
Method Detail |
---|
public static void inc()
public static void dec()
public static boolean dec(boolean autoExitIfZero, int exitCode)
autoExitIfZero
- if true, and if the count gets decremented to zero,
then the process will be exitedexitCode
- if the process is to be exited, this will be used as the exit code
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |