Package com.tenio.core.controller
Class RequestComparator
java.lang.Object
com.tenio.core.controller.RequestComparator
- All Implemented Interfaces:
Comparator<Request>
This class provides a comparator using for sort the requests bases on their priorities in
the controller requests queue.
- See Also:
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
newInstance
Creates a new instance.- Returns:
- a
RequestComparatorinstance
-
compare
- Specified by:
comparein interfaceComparator<Request>
-