- All Implemented Interfaces:
- java.util.Comparator<FlowFile>, FlowFilePrioritizer
public class PriorityAttributePrioritizer
extends java.lang.Object
implements FlowFilePrioritizer
This prioritizer checks each FlowFile for a "priority" attribute and lets
that attribute determine the priority.
1. if neither FlowFile has a "priority" attribute then order will be
FirstInFirstOut 2. if one FlowFile has a "priority" attribute and the other
does not, then the one with the attribute wins 3. if one or both "priority"
attributes is an integer, then the lowest number wins 4. the "priority"
attributes are compared lexicographically and the lowest wins