Package net.toddm.comm
Interface PriorityManagementProvider
-
- All Known Implementing Classes:
DefaultPriorityManagmentProvider
public interface PriorityManagementProviderPriority 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Comparator<Priority>getPriorityComparator()Returns aComparatorthat will be used to control priority order and thus effect the order in which work is attempted.voidpromotePriority(Priority priority)Decides if the given instance ofPriorityshould be adjusted and makes the adjustment if it should.
Note:CommManagerwill call this method each time it is deciding if work should begin, implement accordingly.
-
-
-
Method Detail
-
promotePriority
void promotePriority(Priority priority)
Decides if the given instance ofPriorityshould be adjusted and makes the adjustment if it should.
Note:CommManagerwill call this method each time it is deciding if work should begin, implement accordingly.
-
getPriorityComparator
Comparator<Priority> getPriorityComparator()
Returns aComparatorthat will be used to control priority order and thus effect the order in which work is attempted. Note:CommManagerwill call this method each time it is deciding if work should begin, implement accordingly.
-
-