Package org.kquiet.concurrent
Class PriorityCallable<T>
java.lang.Object
org.kquiet.concurrent.PriorityCallable<T>
- Type Parameters:
T
- the expected return type ofCallable
- All Implemented Interfaces:
Callable<T>
,Prioritized
Prioritized
Callable
. This class is for internal use.- Author:
- Kimberly
-
Constructor Summary
ConstructorsConstructorDescriptionPriorityCallable
(Callable<T> callable, int priority) Crate a prioritizedCallable
. -
Method Summary
-
Constructor Details
-
Method Details
-
call
-
getPriority
public int getPriority()Description copied from interface:Prioritized
Get priority. Smaller value means higher priority.- Specified by:
getPriority
in interfacePrioritized
- Returns:
- priority
-