com.sssw.fw.api
Class EboThreadPoolManager
java.lang.Object
|
+--com.sssw.fw.api.EboThreadPoolManager
- All Implemented Interfaces:
- EbiThreadPoolManager
- public abstract class EboThreadPoolManager
- extends Object
- implements EbiThreadPoolManager
this is a base class to extend for a custom thread pool.
to write your own thread pool, extend this class and implement the methods
of the EbiThreadPoolManager interface.
the Implementing class (your therad pool) has to be placed into the
service.xml for the "com.sssw.fw.api.EbiThreadPoolManager" interface so that
this abstract class can load your implementation
This abstract class provides a singleton factory pattern, hence only one instance
of your thread pool will be instantiated
- Since:
- v.5.0
Method Summary |
static EbiThreadPoolManager |
getPoolManager()
return the singleton of the implementing class of the EbiThreadPoolManager interface;
if this is called for the first time, the implementing class will be determined via the
service.xml entry for the "com.sssw.fw.api.EbiThreadPoolManager" interface. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
EboThreadPoolManager
public EboThreadPoolManager()
getPoolManager
public static EbiThreadPoolManager getPoolManager()
throws EboFactoryException
- return the singleton of the implementing class of the EbiThreadPoolManager interface;
if this is called for the first time, the implementing class will be determined via the
service.xml entry for the "com.sssw.fw.api.EbiThreadPoolManager" interface. the instance
will be created via Class.newInstance()
- Returns:
- the singleton of the implementing class cast to the interface
- Throws:
- EboFactoryException -
- Since:
- v.5.0