org.broadleafcommerce.openadmin.server.service.persistence.entitymanager.pool
Class KeyedEntityManagerPool

java.lang.Object
  extended by org.broadleafcommerce.openadmin.server.service.persistence.entitymanager.pool.KeyedEntityManagerPool

public class KeyedEntityManagerPool
extends java.lang.Object

Created by IntelliJ IDEA. User: jfischer Date: 7/29/11 Time: 1:30 PM To change this template use File | Settings | File Templates.


Field Summary
protected  DefaultEntityManagerPool defaultPool
           
protected  org.apache.commons.pool.impl.GenericKeyedObjectPool sandboxPool
           
 
Constructor Summary
KeyedEntityManagerPool(DefaultEntityManagerPool defaultPool)
           
 
Method Summary
 java.lang.Object borrowObject(java.lang.Object key)
           
 DefaultEntityManagerPool getDefaultPool()
           
 int getMaxActive()
           
 int getMaxIdle()
           
 int getMaxTotal()
           
 long getMaxWait()
           
 long getMinEvictableIdleTimeMillis()
           
 int getMinIdle()
           
 boolean getTestOnBorrow()
           
 boolean getTestOnReturn()
           
 boolean getTestWhileIdle()
           
 long getTimeBetweenEvictionRunsMillis()
           
 byte getWhenExhaustedAction()
           
 void returnObject(java.lang.Object key, java.lang.Object obj)
           
 void setDefaultPool(DefaultEntityManagerPool defaultPool)
           
 void setMaxActive(int maxActive)
           
 void setMaxIdle(int maxIdle)
           
 void setMaxTotal(int maxTotal)
           
 void setMaxWait(long maxWait)
           
 void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
           
 void setMinIdle(int poolSize)
           
 void setTestOnBorrow(boolean testOnBorrow)
           
 void setTestOnReturn(boolean testOnReturn)
           
 void setTestWhileIdle(boolean testWhileIdle)
           
 void setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis)
           
 void setWhenExhaustedAction(byte whenExhaustedAction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultPool

protected DefaultEntityManagerPool defaultPool

sandboxPool

protected org.apache.commons.pool.impl.GenericKeyedObjectPool sandboxPool
Constructor Detail

KeyedEntityManagerPool

public KeyedEntityManagerPool(DefaultEntityManagerPool defaultPool)
Method Detail

borrowObject

public java.lang.Object borrowObject(java.lang.Object key)
                              throws java.lang.Exception
Throws:
java.lang.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(java.lang.Object key,
                         java.lang.Object obj)
                  throws java.lang.Exception
Throws:
java.lang.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 © 2011. All Rights Reserved.