Javadoc
starting at the i position in the array work back and determine which input of consumerId
has the maximum distance, then return that value. if not found return max int.
this provides a "rank" to determine how "near" this consumer is to the most recent stages.
"TrafficCops" and other "triggers" however are always the highest priority and are given a rank of -1 by default.