Package uk.ac.ebi.utils.threading
package uk.ac.ebi.utils.threading
-
ClassesClassDescriptionBatchService<TK extends BatchServiceTask>A pool-based thread execution service, that dynamically optimises its size.Used by
BatchService.Provides a task comparison based onBatchServiceTask.getPriority()(higher priorities comes first).Tricks the behaviour ofLinkedBlockingQueueso that methods likeHackedBlockingQueue.offer(Object)andHackedBlockingQueue.poll()actually invokeLinkedBlockingQueue.put(Object)andLinkedBlockingQueue.take(), i.e., the queue always waits for itself to be free-of/filled-with-some value/s.A Thread Pool Size Optimiser