Class BatchService.BatchServiceTuner

java.lang.Object
uk.ac.ebi.utils.threading.PoolSizeTuner
uk.ac.ebi.utils.threading.BatchService.BatchServiceTuner
Enclosing class:
BatchService<TK extends BatchServiceTask>

protected class BatchService.BatchServiceTuner extends PoolSizeTuner
The custom PoolSizeTuner that is used to optimise this service. You probably will never need to extend this, if you need to change the tuner parameters, use the field BatchService.poolSizeTuner.
date
8 Oct 2013
Author:
Marco Brandizi
  • Constructor Details

    • BatchServiceTuner

      protected BatchServiceTuner()
  • Method Details

    • setThreadPoolSize

      protected void setThreadPoolSize(int size)
      This is invoked by the tuner to change the service's pool size. This implementation does some synchronisation work and you're strongly advised to never override it, unless you're a masochist looking for deluxe treat...
      Specified by:
      setThreadPoolSize in class PoolSizeTuner
    • getThreadPoolSize

      public int getThreadPoolSize()
      Specified by:
      getThreadPoolSize in class PoolSizeTuner
    • getCompletedTasks

      public long getCompletedTasks()
      Specified by:
      getCompletedTasks in class PoolSizeTuner