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 Details

    • 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 property
      value - values of the property
    • getProperty

      Object getProperty(String name)
      Get the property
      Parameters:
      name - key of the property
      Returns:
      property value