Package org.kquiet.concurrent
Class PriorityRunnable
java.lang.Object
org.kquiet.concurrent.PriorityRunnable
- All Implemented Interfaces:
Runnable,Prioritized
Prioritized
Runnable. This class is for internal use.- Author:
- Kimberly
-
Constructor Summary
ConstructorsConstructorDescriptionPriorityRunnable(Runnable runnable, int priority) Create a prioritizedRunnable. -
Method Summary
-
Constructor Details
-
Method Details
-
getPriority
public int getPriority()Description copied from interface:PrioritizedGet priority. Smaller value means higher priority.- Specified by:
getPriorityin interfacePrioritized- Returns:
- priority
-
run
public void run()
-