org.broadleafcommerce.openadmin.server.service.persistence.entitymanager.pool
Class KeyedEntityManagerPool
java.lang.Object
org.broadleafcommerce.openadmin.server.service.persistence.entitymanager.pool.KeyedEntityManagerPool
public class KeyedEntityManagerPool
- extends Object
Created by IntelliJ IDEA.
User: jfischer
Date: 7/29/11
Time: 1:30 PM
To change this template use File | Settings | File Templates.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultPool
protected DefaultEntityManagerPool defaultPool
sandboxPool
protected org.apache.commons.pool.impl.GenericKeyedObjectPool sandboxPool
KeyedEntityManagerPool
public KeyedEntityManagerPool(DefaultEntityManagerPool defaultPool)
borrowObject
public Object borrowObject(Object key)
throws Exception
- Throws:
Exception
getMaxActive
public int getMaxActive()
getMaxIdle
public int getMaxIdle()
getMaxTotal
public int getMaxTotal()
getMaxWait
public long getMaxWait()
getMinEvictableIdleTimeMillis
public long getMinEvictableIdleTimeMillis()
getMinIdle
public int getMinIdle()
getTimeBetweenEvictionRunsMillis
public long getTimeBetweenEvictionRunsMillis()
getWhenExhaustedAction
public byte getWhenExhaustedAction()
returnObject
public void returnObject(Object key,
Object obj)
throws Exception
- Throws:
Exception
setMaxActive
public void setMaxActive(int maxActive)
setMaxIdle
public void setMaxIdle(int maxIdle)
setMaxTotal
public void setMaxTotal(int maxTotal)
setMaxWait
public void setMaxWait(long maxWait)
setMinEvictableIdleTimeMillis
public void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
setMinIdle
public void setMinIdle(int poolSize)
setTestOnBorrow
public void setTestOnBorrow(boolean testOnBorrow)
setTestOnReturn
public void setTestOnReturn(boolean testOnReturn)
getTestOnBorrow
public boolean getTestOnBorrow()
getTestOnReturn
public boolean getTestOnReturn()
getTestWhileIdle
public boolean getTestWhileIdle()
setTestWhileIdle
public void setTestWhileIdle(boolean testWhileIdle)
setTimeBetweenEvictionRunsMillis
public void setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis)
setWhenExhaustedAction
public void setWhenExhaustedAction(byte whenExhaustedAction)
getDefaultPool
public DefaultEntityManagerPool getDefaultPool()
setDefaultPool
public void setDefaultPool(DefaultEntityManagerPool defaultPool)
Copyright © 2012. All Rights Reserved.