Package at.jku.ssw.fp.sect10
Class Constants
- java.lang.Object
-
- at.jku.ssw.fp.sect10.Constants
-
public class Constants extends Object
Class with a set of constants used in examples.- Author:
- Herbert Praehofer
-
-
Field Summary
Fields Modifier and Type Field Description static int
DELAY_CONST
A constant for simulating a delay in an operationstatic int
DELAY_VARIATION
A constant for generating a variation in a delay of an operationstatic double
EXCPT_PROP
A probability for a exceptionstatic ExecutorService
executor
A tread poolstatic int
PARALLELISM
A default parallelism for the thread poolstatic Random
RAND
A random number generatorstatic int
TIMEOUT_DELAY
A constant for a timeoutstatic double
TIMEOUT_PROP
A probability for a timeout
-
Constructor Summary
Constructors Constructor Description Constants()
-
-
-
Field Detail
-
RAND
public static final Random RAND
A random number generator
-
PARALLELISM
public static final int PARALLELISM
A default parallelism for the thread pool- See Also:
- Constant Field Values
-
executor
public static final ExecutorService executor
A tread pool
-
DELAY_CONST
public static int DELAY_CONST
A constant for simulating a delay in an operation
-
DELAY_VARIATION
public static int DELAY_VARIATION
A constant for generating a variation in a delay of an operation
-
EXCPT_PROP
public static double EXCPT_PROP
A probability for a exception
-
TIMEOUT_PROP
public static double TIMEOUT_PROP
A probability for a timeout
-
TIMEOUT_DELAY
public static int TIMEOUT_DELAY
A constant for a timeout
-
-