org.sourceforge.jemm.database.components
Enum GCMode

java.lang.Object
  extended by java.lang.Enum<GCMode>
      extended by org.sourceforge.jemm.database.components.GCMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GCMode>

public enum GCMode
extends java.lang.Enum<GCMode>

Enum representing whether the garbage collector is in automatic (daemon thread) or manual trigger mode.

Author:
Rory Graves

Enum Constant Summary
AUTO
          The garbage collector automatically runs in a background thread
MANUAL
          The garbage collector will only run when triggered manually.
 
Method Summary
static GCMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GCMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AUTO

public static final GCMode AUTO
The garbage collector automatically runs in a background thread


MANUAL

public static final GCMode MANUAL
The garbage collector will only run when triggered manually.

Method Detail

values

public static GCMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (GCMode c : GCMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static GCMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2009. All Rights Reserved.