Package org.jboss.as.ejb3.component.pool
Class StrictMaxPoolConfig
- java.lang.Object
-
- org.jboss.as.ejb3.component.pool.PoolConfig
-
- org.jboss.as.ejb3.component.pool.StrictMaxPoolConfig
-
public class StrictMaxPoolConfig extends PoolConfig
User: Jaikiran Pai
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_MAX_POOL_SIZEstatic longDEFAULT_TIMEOUTstatic TimeUnitDEFAULT_TIMEOUT_UNIT-
Fields inherited from class org.jboss.as.ejb3.component.pool.PoolConfig
poolName
-
-
Constructor Summary
Constructors Constructor Description StrictMaxPoolConfig(String poolName, int maxSize, long timeout, TimeUnit timeUnit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Pool<T>createPool(StatelessObjectFactory<T> statelessObjectFactory)intgetMaxPoolSize()longgetTimeout()TimeUnitgetTimeoutUnit()voidsetMaxPoolSize(int maxPoolSize)voidsetTimeout(long timeout)voidsetTimeoutUnit(TimeUnit timeoutUnit)StringtoString()-
Methods inherited from class org.jboss.as.ejb3.component.pool.PoolConfig
getPoolName
-
-
-
-
Field Detail
-
DEFAULT_MAX_POOL_SIZE
public static final int DEFAULT_MAX_POOL_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_TIMEOUT
public static final long DEFAULT_TIMEOUT
- See Also:
- Constant Field Values
-
DEFAULT_TIMEOUT_UNIT
public static final TimeUnit DEFAULT_TIMEOUT_UNIT
-
-
Method Detail
-
createPool
public <T> Pool<T> createPool(StatelessObjectFactory<T> statelessObjectFactory)
- Specified by:
createPoolin classPoolConfig
-
getMaxPoolSize
public int getMaxPoolSize()
-
setMaxPoolSize
public void setMaxPoolSize(int maxPoolSize)
-
getTimeoutUnit
public TimeUnit getTimeoutUnit()
-
setTimeoutUnit
public void setTimeoutUnit(TimeUnit timeoutUnit)
-
getTimeout
public long getTimeout()
-
setTimeout
public void setTimeout(long timeout)
-
-