Interface PriorityManagementProvider

  • All Known Implementing Classes:
    DefaultPriorityManagmentProvider

    public interface PriorityManagementProvider
    Priority management providers implement this interface in order to control priority queue functionality such as priority promotion and priority queue sorting.

    Author:
    Todd S. Murchison
    • Method Detail

      • promotePriority

        void promotePriority​(Priority priority)
        Decides if the given instance of Priority should be adjusted and makes the adjustment if it should.
        Note: CommManager will call this method each time it is deciding if work should begin, implement accordingly.
      • getPriorityComparator

        Comparator<Priority> getPriorityComparator()
        Returns a Comparator that will be used to control priority order and thus effect the order in which work is attempted. Note: CommManager will call this method each time it is deciding if work should begin, implement accordingly.