org.jikesrvm.scheduler
Enum RVMThread.Waiting

java.lang.Object
  extended by java.lang.Enum<RVMThread.Waiting>
      extended by org.jikesrvm.scheduler.RVMThread.Waiting
All Implemented Interfaces:
Serializable, Comparable<RVMThread.Waiting>
Enclosing class:
RVMThread

protected static enum RVMThread.Waiting
extends Enum<RVMThread.Waiting>

An enumeration that describes the different manners in which a thread might be voluntarily waiting.


Enum Constant Summary
RUNNABLE
          The thread is not waiting at all.
TIMED_WAITING
          The thread is waiting with a timeout.
WAITING
          The thread is waiting without a timeout.
 
Method Summary
static RVMThread.Waiting valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RVMThread.Waiting[] 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

RUNNABLE

public static final RVMThread.Waiting RUNNABLE
The thread is not waiting at all. In fact it's running.


WAITING

public static final RVMThread.Waiting WAITING
The thread is waiting without a timeout.


TIMED_WAITING

public static final RVMThread.Waiting TIMED_WAITING
The thread is waiting with a timeout.

Method Detail

values

public static RVMThread.Waiting[] 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 (RVMThread.Waiting c : RVMThread.Waiting.values())
    System.out.println(c);

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

valueOf

public static RVMThread.Waiting valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null