org.jencks.factory
Class PartitionedPoolFactoryBean
java.lang.Object
org.jencks.factory.AbstractGeronimoPool
org.jencks.factory.PartitionedPoolFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
- public class PartitionedPoolFactoryBean
- extends AbstractGeronimoPool
- implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
This FactoryBean creates the partitionned pool strategy for
the Geronimo connection manager.
This class is based on the common pool properties defined in
the AbstractGeronimoPool class and two other properties:
partitionByConnectionRequestInfo to manage pooling with the
request informations and partitionBySubject to manage pooling
with the subjects.
- Author:
- Thierry Templier
- See Also:
PartitionedPool
,
AbstractGeronimoPool
,
ConnectionManagerFactoryBean.setPoolingSupport(PoolingSupport)
Methods inherited from class org.jencks.factory.AbstractGeronimoPool |
getBlockingTimeoutMilliseconds, getIdleTimeoutMinutes, getMaxSize, getMinSize, isMatchAll, isMatchOne, isSelectOneAssumeMatch, setBlockingTimeoutMilliseconds, setIdleTimeoutMinutes, setMatchAll, setMatchOne, setMaxSize, setMinSize, setSelectOneAssumeMatch |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
partitionByConnectionRequestInfo
protected boolean partitionByConnectionRequestInfo
partitionBySubject
protected boolean partitionBySubject
PartitionedPoolFactoryBean
public PartitionedPoolFactoryBean()
getObject
public Object getObject()
throws Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean
- Throws:
Exception
getObjectType
public Class getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean
setPartitionByConnectionRequestInfo
public void setPartitionByConnectionRequestInfo(boolean partitionByConnectionRequestInfo)
- Set the partitionByConnectionRequestInfo for the pool.
setPartitionBySubject
public void setPartitionBySubject(boolean partitionBySubject)
- Set the partitionBySubject for the pool.
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
Copyright © 2005 LogicBlaze, Inc.. All Rights Reserved.