Class VitruvioThreadPoolWrapper
Object
VitruvioThreadPoolWrapper
- All Implemented Interfaces:
ThreadPool
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LogLogger available to subclassesstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintvoidbooleanrunInThread(Runnable runnable) voidsetInstanceId(String schedInstId) voidsetInstanceName(String schedName) voidshutdown(boolean waitForJobsToComplete)
-
Field Details
-
logger
protected final Log loggerLogger available to subclasses -
MIN_AVALIABLE_THREADS
public static final int MIN_AVALIABLE_THREADS- See Also:
-
-
Constructor Details
-
VitruvioThreadPoolWrapper
public VitruvioThreadPoolWrapper()
-
-
Method Details
-
setInstanceId
- Specified by:
setInstanceIdin interfaceThreadPool
-
setInstanceName
- Specified by:
setInstanceNamein interfaceThreadPool
-
initialize
public void initialize() throws SchedulerConfigException- Specified by:
initializein interfaceThreadPool- Throws:
SchedulerConfigException
-
shutdown
public void shutdown(boolean waitForJobsToComplete) - Specified by:
shutdownin interfaceThreadPool
-
getPoolSize
public int getPoolSize()- Specified by:
getPoolSizein interfaceThreadPool
-
runInThread
- Specified by:
runInThreadin interfaceThreadPool
-
blockForAvailableThreads
public int blockForAvailableThreads()- Specified by:
blockForAvailableThreadsin interfaceThreadPool
-