org.broadleafcommerce.openadmin.server.service.persistence.entitymanager.pool
Class DefaultEntityManagerPool
java.lang.Object
org.apache.commons.pool.BaseObjectPool
org.apache.commons.pool.impl.GenericObjectPool
org.broadleafcommerce.openadmin.server.service.persistence.entitymanager.pool.DefaultEntityManagerPool
- All Implemented Interfaces:
- org.apache.commons.pool.ObjectPool, org.springframework.context.ApplicationContextAware
public class DefaultEntityManagerPool
- extends org.apache.commons.pool.impl.GenericObjectPool
- implements org.springframework.context.ApplicationContextAware
Created by IntelliJ IDEA.
User: jfischer
Date: 7/29/11
Time: 1:34 PM
To change this template use File | Settings | File Templates.
| Nested classes/interfaces inherited from class org.apache.commons.pool.impl.GenericObjectPool |
org.apache.commons.pool.impl.GenericObjectPool.Config |
| Fields inherited from class org.apache.commons.pool.impl.GenericObjectPool |
DEFAULT_LIFO, DEFAULT_MAX_ACTIVE, DEFAULT_MAX_IDLE, DEFAULT_MAX_WAIT, DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS, DEFAULT_MIN_IDLE, DEFAULT_NUM_TESTS_PER_EVICTION_RUN, DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS, DEFAULT_TEST_ON_BORROW, DEFAULT_TEST_ON_RETURN, DEFAULT_TEST_WHILE_IDLE, DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS, DEFAULT_WHEN_EXHAUSTED_ACTION, WHEN_EXHAUSTED_BLOCK, WHEN_EXHAUSTED_FAIL, WHEN_EXHAUSTED_GROW |
| Methods inherited from class org.apache.commons.pool.impl.GenericObjectPool |
addObject, clear, close, evict, getLifo, getNumIdle, getNumTestsPerEvictionRun, getSoftMinEvictableIdleTimeMillis, setConfig, setFactory, setLifo, setNumTestsPerEvictionRun, setSoftMinEvictableIdleTimeMillis, startEvictor |
| Methods inherited from class org.apache.commons.pool.BaseObjectPool |
assertOpen, isClosed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mySharedEntityManagerBeanRef
protected java.lang.String mySharedEntityManagerBeanRef
sandboxPool
protected org.apache.commons.pool.impl.GenericObjectPool sandboxPool
DefaultEntityManagerPool
public DefaultEntityManagerPool()
invalidateObject
public void invalidateObject(java.lang.Object obj)
throws java.lang.Exception
- Specified by:
invalidateObject in interface org.apache.commons.pool.ObjectPool- Overrides:
invalidateObject in class org.apache.commons.pool.impl.GenericObjectPool
- Throws:
java.lang.Exception
borrowObject
public java.lang.Object borrowObject()
throws java.lang.Exception
- Specified by:
borrowObject in interface org.apache.commons.pool.ObjectPool- Overrides:
borrowObject in class org.apache.commons.pool.impl.GenericObjectPool
- Throws:
java.lang.Exception
getMaxActive
public int getMaxActive()
- Overrides:
getMaxActive in class org.apache.commons.pool.impl.GenericObjectPool
getMaxIdle
public int getMaxIdle()
- Overrides:
getMaxIdle in class org.apache.commons.pool.impl.GenericObjectPool
getMaxWait
public long getMaxWait()
- Overrides:
getMaxWait in class org.apache.commons.pool.impl.GenericObjectPool
getMinEvictableIdleTimeMillis
public long getMinEvictableIdleTimeMillis()
- Overrides:
getMinEvictableIdleTimeMillis in class org.apache.commons.pool.impl.GenericObjectPool
getMinIdle
public int getMinIdle()
- Overrides:
getMinIdle in class org.apache.commons.pool.impl.GenericObjectPool
getNumActive
public int getNumActive()
- Specified by:
getNumActive in interface org.apache.commons.pool.ObjectPool- Overrides:
getNumActive in class org.apache.commons.pool.impl.GenericObjectPool
getTestOnBorrow
public boolean getTestOnBorrow()
- Overrides:
getTestOnBorrow in class org.apache.commons.pool.impl.GenericObjectPool
getTestOnReturn
public boolean getTestOnReturn()
- Overrides:
getTestOnReturn in class org.apache.commons.pool.impl.GenericObjectPool
getTestWhileIdle
public boolean getTestWhileIdle()
- Overrides:
getTestWhileIdle in class org.apache.commons.pool.impl.GenericObjectPool
getTimeBetweenEvictionRunsMillis
public long getTimeBetweenEvictionRunsMillis()
- Overrides:
getTimeBetweenEvictionRunsMillis in class org.apache.commons.pool.impl.GenericObjectPool
getWhenExhaustedAction
public byte getWhenExhaustedAction()
- Overrides:
getWhenExhaustedAction in class org.apache.commons.pool.impl.GenericObjectPool
returnObject
public void returnObject(java.lang.Object obj)
throws java.lang.Exception
- Specified by:
returnObject in interface org.apache.commons.pool.ObjectPool- Overrides:
returnObject in class org.apache.commons.pool.impl.GenericObjectPool
- Throws:
java.lang.Exception
setMaxActive
public void setMaxActive(int maxActive)
- Overrides:
setMaxActive in class org.apache.commons.pool.impl.GenericObjectPool
setMaxIdle
public void setMaxIdle(int maxIdle)
- Overrides:
setMaxIdle in class org.apache.commons.pool.impl.GenericObjectPool
setMaxWait
public void setMaxWait(long maxWait)
- Overrides:
setMaxWait in class org.apache.commons.pool.impl.GenericObjectPool
setMinEvictableIdleTimeMillis
public void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
- Overrides:
setMinEvictableIdleTimeMillis in class org.apache.commons.pool.impl.GenericObjectPool
setMinIdle
public void setMinIdle(int minIdle)
- Overrides:
setMinIdle in class org.apache.commons.pool.impl.GenericObjectPool
setTestOnBorrow
public void setTestOnBorrow(boolean testOnBorrow)
- Overrides:
setTestOnBorrow in class org.apache.commons.pool.impl.GenericObjectPool
setTestOnReturn
public void setTestOnReturn(boolean testOnReturn)
- Overrides:
setTestOnReturn in class org.apache.commons.pool.impl.GenericObjectPool
setTestWhileIdle
public void setTestWhileIdle(boolean testWhileIdle)
- Overrides:
setTestWhileIdle in class org.apache.commons.pool.impl.GenericObjectPool
setTimeBetweenEvictionRunsMillis
public void setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis)
- Overrides:
setTimeBetweenEvictionRunsMillis in class org.apache.commons.pool.impl.GenericObjectPool
setWhenExhaustedAction
public void setWhenExhaustedAction(byte whenExhaustedAction)
- Overrides:
setWhenExhaustedAction in class org.apache.commons.pool.impl.GenericObjectPool
getMySharedEntityManagerBeanRef
public java.lang.String getMySharedEntityManagerBeanRef()
setMySharedEntityManagerBeanRef
public void setMySharedEntityManagerBeanRef(java.lang.String mySharedEntityManagerBeanRef)
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
Copyright © 2011. All Rights Reserved.