|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The ObjectPoolFactory defines an interface to create ObjectPool objects.
The implementing class should be aware of the corresponding PoolableObjectFactory without it no objects can be created. In addition, a recommendation for the implementing class would be to treat it as a singleton and to provide a static ObjectPoolFactory getInstance() method.
| Method Summary | |
ObjectPool |
createPool()
Create an ObjectPool |
ObjectPool |
createPool(int minimum)
Create an ObjectPool |
ObjectPool |
createPool(int minimum,
int maximum)
Create an ObjectPool |
ObjectPool |
createPool(int minimum,
int maximum,
long expiration)
Create an ObjectPool |
| Method Detail |
public ObjectPool createPool()
throws Exception
Exception - thrown if an error occured while trying to create the ObjectPool
public ObjectPool createPool(int minimum)
throws Exception
minimum - The minimum number of objects that the pool must maintain
Exception - thrown if an error occured while trying to create the ObjectPool
public ObjectPool createPool(int minimum,
int maximum)
throws Exception
minimum - The minimum number of objects that the pool must maintainmaximum - The maximum number of objects that the pool can have
Exception - thrown if an error occured while trying to create the ObjectPool
public ObjectPool createPool(int minimum,
int maximum,
long expiration)
throws Exception
minimum - The minimum number of objects that the pool must maintainmaximum - The maximum number of objects that the pool can haveexpiration - The expiration time at which idle objects will begin to expire
Exception - thrown if an error occured while trying to create the ObjectPool
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||