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:Prioritized
Get priority. Smaller value means higher priority.- Specified by:
getPriority
in interfacePrioritized
- Returns:
- priority
-
run
public void run()
-