Package com.zfabrik.work
Class WorkManager
- java.lang.Object
-
- com.zfabrik.work.WorkManager
-
public abstract class WorkManager extends java.lang.Object
The work manager manages the system's concurrency.- Author:
- hb
-
-
Field Summary
Fields Modifier and Type Field Description protected static WorkManager
instance
-
Constructor Summary
Constructors Constructor Description WorkManager()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract IThreadPool
createThreadPool(java.lang.String id)
provide a logical thread pool by id.static WorkManager
get()
abstract void
releaseThreadPool(java.lang.String id)
releases a named threadpool.
-
-
-
Field Detail
-
instance
protected static WorkManager instance
-
-
Method Detail
-
get
public static WorkManager get()
-
createThreadPool
public abstract IThreadPool createThreadPool(java.lang.String id)
provide a logical thread pool by id. Will throw an exception if a thread pool by the same id has been created previously but released.- Parameters:
id
-
-
releaseThreadPool
public abstract void releaseThreadPool(java.lang.String id)
releases a named threadpool. Will throw an exception if the named threadpool does not exist or is still busy
-
-