Interface Importance
public interface Importance
This class determines the priority of a Worker. It can also hold some properties
for assisting the queue selecting algorithms.
-
Method Summary
Modifier and TypeMethodDescriptionintGet the prioritygetProperty(String name) Get the propertyvoidsetPriority(int p) Set the priorityvoidsetProperty(String name, Object value) Set some properties
-
Method Details
-
getPriority
int getPriority()Get the priority- Returns:
- priority
-
setPriority
void setPriority(int p) Set the priority- Parameters:
p- priority
-
setProperty
Set some properties- Parameters:
name- name of the propertyvalue- values of the property
-
getProperty
Get the property- Parameters:
name- key of the property- Returns:
- property value
-