Interface QueueSelector
public interface QueueSelector
A
QueueSelector is responsible for, given a Runnable and the number of available
queues, return which of the queues that Runnable should be placed in.-
Method Summary
-
Method Details
-
getQueue
Must be deterministic—return the same value for the same input.- Returns:
- given a
Runnablea number between 0 ..queues(exclusive) - Throws:
NullPointerException- whencommandisnull
-