public class StrictMaxPoolConfig extends PoolConfig
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_POOL_SIZE |
static long |
DEFAULT_TIMEOUT |
static TimeUnit |
DEFAULT_TIMEOUT_UNIT |
poolName
Constructor and Description |
---|
StrictMaxPoolConfig(String poolName,
int maxSize,
long timeout,
TimeUnit timeUnit) |
Modifier and Type | Method and Description |
---|---|
Pool<?> |
createPool(StatelessObjectFactory statelessObjectFactory) |
int |
getMaxPoolSize() |
long |
getTimeout() |
TimeUnit |
getTimeoutUnit() |
void |
setMaxPoolSize(int maxPoolSize) |
void |
setTimeout(long timeout) |
void |
setTimeoutUnit(TimeUnit timeoutUnit) |
String |
toString() |
getPoolName
public static final int DEFAULT_MAX_POOL_SIZE
public static final long DEFAULT_TIMEOUT
public static final TimeUnit DEFAULT_TIMEOUT_UNIT
public Pool<?> createPool(StatelessObjectFactory statelessObjectFactory)
createPool
in class PoolConfig
public int getMaxPoolSize()
public void setMaxPoolSize(int maxPoolSize)
public TimeUnit getTimeoutUnit()
public void setTimeoutUnit(TimeUnit timeoutUnit)
public long getTimeout()
public void setTimeout(long timeout)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.