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 Link icon

    • BatchServiceTuner Link icon

      protected BatchServiceTuner()
  • Method Details Link icon

    • setThreadPoolSize Link icon

      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 Link icon

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

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