org.datamanager.kernel
Class Simpleton.Priority

java.lang.Object
  |
  +--org.datamanager.kernel.Simpleton.Priority
Enclosing class:
Simpleton

public static final class Simpleton.Priority
extends Object

Encapsulates a Priority that can be used to control thread priority.


Field Summary
static Simpleton.Priority HIGH_PRIORITY
           
static Simpleton.Priority LOW_PRIORITY
           
static Simpleton.Priority MAX_PRIORITY
           
static Simpleton.Priority MIN_PRIORITY
           
static Simpleton.Priority NORMAL_PRIORITY
           
 
Method Summary
 String toString()
           
static Simpleton.Priority translateToSimpletonPriority(int priority)
          Translates an int priority from the Thread class to a Simpleton.Priority.
 int translateToThreadPriority()
          Translates this Simpleton.Priority to a Thread priority.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MIN_PRIORITY

public static final Simpleton.Priority MIN_PRIORITY

LOW_PRIORITY

public static final Simpleton.Priority LOW_PRIORITY

NORMAL_PRIORITY

public static final Simpleton.Priority NORMAL_PRIORITY

HIGH_PRIORITY

public static final Simpleton.Priority HIGH_PRIORITY

MAX_PRIORITY

public static final Simpleton.Priority MAX_PRIORITY
Method Detail

translateToThreadPriority

public int translateToThreadPriority()
Translates this Simpleton.Priority to a Thread priority.


translateToSimpletonPriority

public static Simpleton.Priority translateToSimpletonPriority(int priority)
Translates an int priority from the Thread class to a Simpleton.Priority.


toString

public String toString()
Overrides:
toString in class Object


See the Helium Website