Class BatchServiceTask.TaskComparator

java.lang.Object
uk.ac.ebi.utils.threading.BatchServiceTask.TaskComparator
All Implemented Interfaces:
Comparator<Runnable>
Enclosing class:
BatchServiceTask

public static class BatchServiceTask.TaskComparator extends Object implements Comparator<Runnable>
Provides a task comparison based on BatchServiceTask.getPriority() (higher priorities comes first). This is useful when you override BatchService.newThreadPoolExecutor(int) to return an executor service that uses PriorityBlockingQueue.
Author:
brandizi
Date:
28 Jan 2016