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
    `java.lang.Object` | `getProperty(java.lang.String name)` Get the property
    `void` | `setPriority(int p)` Set the priority
    `void` | `setProperty(java.lang.String name, java.lang.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(java.lang.String name,
                           java.lang.Object value)

      Set some properties
      Parameters:
        `name` - name of the property
        `value` - values of the property

    - #### getProperty

          java.lang.Object getProperty(java.lang.String name)

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

Copyright © 2005-2022 Apache Software Foundation. All Rights Reserved.