org.apache.synapse.commons.executors

## 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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getPriority()` Get the priority
    `Object` | `getProperty(String name)` Get the property
    `void` | `setPriority(int p)` Set the priority
    `void` | `setProperty(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 property
        `value` - values of the property

    - #### getProperty

          Object getProperty(String name)

      Get the property
      Parameters:
        `name` - key of the property
      Returns:
        property value

Copyright © 2005–2018 Apache Software Foundation. All rights reserved.