Package uk.ac.ebi.utils.threading
package uk.ac.ebi.utils.threading
-
ClassDescriptionBatchService<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 ofLinkedBlockingQueue
so 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