com.sun.javatest.util
public class ExitCount extends java.lang.Object
Constructor and Description |
---|
ExitCount() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 codeCopyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.