|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- public interface NextQueueAlgorithm<E>
This interface abstracts the algorithm for determining the next internal queue for picking up the message. This class is created once and initialized. This class should capture any runtime information about the queues since the MultiPriorityBlockingQueue doesn't hold any runtime state information about the queues.
Method Summary | |
---|---|
InternalQueue<E> |
getNextQueue()
Should return a queue based on some selection criteria and current state of the queues. |
void |
init(List<InternalQueue<E>> queues)
Initialized with the queues sorted according to the priority. |
Method Detail |
---|
void init(List<InternalQueue<E>> queues)
queues
- list of queuesInternalQueue<E> getNextQueue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |