English | Site Directory

Android - An Open Handset Alliance Project

java.lang
public static final enum

java.lang.Thread.State

java.lang.Object
java.lang.Enum Serializable Comparable
java.lang.Thread.State

A representation of a thread's state. A given thread may only be in one state at a time.

Summary

Enum Values

State  BLOCKED  The thread is blocked and waiting for a lock. 
State  NEW  The thread has been created, but has never been started. 
State  RUNNABLE  The thread may be run. 
State  TERMINATED  The thread has been terminated. 
State  TIMED_WAITING  The thread is waiting for a specified amount of time. 
State  WAITING  The thread is waiting. 

Public Methods

      static  State  valueOf(String name)
    final  static  State[]  values()
Methods inherited from class java.lang.Enum
Methods inherited from class java.lang.Object
Methods inherited from interface java.lang.Comparable

Details

Enum Values

public static final State BLOCKED

The thread is blocked and waiting for a lock.

public static final State NEW

The thread has been created, but has never been started.

public static final State RUNNABLE

The thread may be run.

public static final State TERMINATED

The thread has been terminated.

public static final State TIMED_WAITING

The thread is waiting for a specified amount of time.

public static final State WAITING

The thread is waiting.

Public Methods

public static State valueOf(String name)

public static final State[] values()

Build m5-rc15i - 10 Jun 2008 13:54