Package uk.ac.ebi.utils.threading
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>
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
- 
Field SummaryFields inherited from class uk.ac.ebi.utils.threading.PoolSizeTunerlog
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlongintprotected voidsetThreadPoolSize(int size) This is invoked by the tuner to change the service's pool size.Methods inherited from class uk.ac.ebi.utils.threading.PoolSizeTunergetMaxThreadIncr, getMaxThreads, getMinThreadIncr, getMinThreads, getPeriodMSecs, getThreadDeltaTolerance, isActive, setMaxThreadIncr, setMaxThreads, setMinThreadIncr, setMinThreads, setPeriodMSecs, setThreadDeltaTolerance, start, stop
- 
Constructor Details- 
BatchServiceTunerprotected BatchServiceTuner()
 
- 
- 
Method Details- 
setThreadPoolSizeprotected 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:
- setThreadPoolSizein class- PoolSizeTuner
 
- 
getThreadPoolSizepublic int getThreadPoolSize()- Specified by:
- getThreadPoolSizein class- PoolSizeTuner
 
- 
getCompletedTaskspublic long getCompletedTasks()- Specified by:
- getCompletedTasksin class- PoolSizeTuner
 
 
-