public enum AGPoolProp extends Enum<AGPoolProp>
AGPoolConfig
.
Property names to open a AGRepositoryConnection
.
TODO: AGRepositoryConnection.setSessionLoadInitFile(boolean)
TODO: AGRepositoryConnection.addSessionLoadScript(String)
GenericObjectPool
.GenericObjectPool
,
GenericKeyedObjectPool.Config
Enum Constant and Description |
---|
initialSize
When the pool is created, this many connections will be
initialized, then returned to the pool.
|
maxActive
Max number of connections that can be allocated by the pool.
|
maxIdle |
maxWait
milliseconds to wait to borrow before throwing
NoSuchElementException |
minEvictableIdleTimeMillis |
minIdle |
numTestsPerEvictionRun |
shutdownHook
When the pool is created, if this is true (default is false),
a hook will be registered to close the pool.
|
softMinEvictableIdleTimeMillis |
testOnBorrow
|
testOnReturn
|
testWhileIdle |
timeBetweenEvictionRunsMillis |
Modifier and Type | Method and Description |
---|---|
static AGPoolProp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AGPoolProp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AGPoolProp initialSize
AGPoolConfig.initialSize
public static final AGPoolProp shutdownHook
When the pool is closed, from outside of the hook, the
hook will be removed
so it is not leaked in the list of hooks.
public static final AGPoolProp minIdle
GenericObjectPool.setMinIdle(int)
public static final AGPoolProp maxIdle
GenericObjectPool.setMaxIdle(int)
public static final AGPoolProp maxActive
GenericObjectPool.setMaxActive(int)
public static final AGPoolProp maxWait
NoSuchElementException
GenericObjectPool.setMaxWait(long)
public static final AGPoolProp testOnBorrow
AGRepositoryConnection.size(org.openrdf.model.Resource...)
.
Redundant because AGConnFactory.activateObject(Object)
always calls AGRepositoryConnection.rollback()
.GenericObjectPool.setTestOnBorrow(boolean)
,
AGConnFactory.validateObject(Object)
public static final AGPoolProp testOnReturn
GenericObjectPool.setTestOnReturn(boolean)
,
AGConnFactory.validateObject(Object)
public static final AGPoolProp timeBetweenEvictionRunsMillis
GenericObjectPool.setTimeBetweenEvictionRunsMillis(long)
public static final AGPoolProp minEvictableIdleTimeMillis
GenericObjectPool.setMinEvictableIdleTimeMillis(long)
public static final AGPoolProp testWhileIdle
GenericObjectPool.setTestWhileIdle(boolean)
public static final AGPoolProp softMinEvictableIdleTimeMillis
GenericObjectPool.setSoftMinEvictableIdleTimeMillis(long)
public static final AGPoolProp numTestsPerEvictionRun
GenericObjectPool.setNumTestsPerEvictionRun(int)
public static AGPoolProp[] values()
for (AGPoolProp c : AGPoolProp.values()) System.out.println(c);
public static AGPoolProp valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null