javolution37.javolution
Class Configuration
- java.lang.Object
-
- javolution37.javolution.Configuration
-
public final class Configuration extends java.lang.ObjectThis class centralizes Javolution configuration parameters. Applications may change the default values by providing their ownjavolution.Configurationclass to be loaded in place of this one (first in classpath) or by modifying this class directly.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static intconcurrency()Returns the maximum number of concurrent thread.static intfactories()Returns the maximum number of object factories.static booleanisPoorSystemHash()Indicates if the system hash code is well distributed (default hashcodes forObjectinstances).
-
-
-
Method Detail
-
concurrency
public static int concurrency()
Returns the maximum number of concurrent thread.- Returns:
(Number of Processors) - 1- See Also:
ConcurrentThread
-
factories
public static int factories()
Returns the maximum number of object factories.- Returns:
1024- See Also:
ObjectFactory
-
isPoorSystemHash
public static boolean isPoorSystemHash()
Indicates if the system hash code is well distributed (default hashcodes forObjectinstances).- Returns:
trueif the default system hashcode is not evenly distributed;falseotherwise (small test performed at start-up).
-
-
DMelt 3.0 © DataMelt by jWork.ORG