Interface Importance
-
public interface ImportanceThis class determines the priority of a Worker. It can also hold some properties for assisting the queue selecting algorithms.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetPriority()Get the priorityObjectgetProperty(String name)Get the propertyvoidsetPriority(int p)Set the priorityvoidsetProperty(String name, Object value)Set some properties
-
-
-
Method Detail
-
getPriority
int getPriority()
Get the priority- Returns:
- priority
-
setPriority
void setPriority(int p)
Set the priority- Parameters:
p- priority
-
setProperty
void setProperty(String name, Object value)
Set some properties- Parameters:
name- name of the propertyvalue- values of the property
-
-