public enum AGPoolProp extends Enum<AGPoolProp>
AGPoolConfig
.
Property names to open a AGRepositoryConnection
.
TODO: AGRepositoryConnection.setSessionLoadInitFile(boolean)
TODO: AGRepositoryConnection.addSessionLoadScript(String)
Many of these properties are specified and used by GenericObjectPool
.
GenericObjectPool
,
GenericObjectPoolConfig
Enum Constant and Description |
---|
initialSize
When the pool is created, this many connections will be
initialized, then returned to the pool.
|
lifo
Boolean property, true means LIFO and false means FIFO retrieval of objects from 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 |
warmup
Boolean property, if true warmup is executed during pool creation.
|
warmupIncludeStrings
Boolean property, set to false to exclude the string table from a warmup
|
warmupIncludeTriples
Boolean property, set to false to exclude triple indices from a warmup
|
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
BaseGenericObjectPool.setMaxTotal(int)
public static final AGPoolProp maxWait
NoSuchElementException
BaseGenericObjectPool.setMaxWaitMillis(long)
public static final AGPoolProp testOnBorrow
AGRepositoryConnection.size(org.eclipse.rdf4j.model.Resource...)
.
Redundant because AGConnFactory.activateObject(PooledObject)
always calls AGRepositoryConnection.rollback()
.
BaseGenericObjectPool.setTestOnBorrow(boolean)
,
AGConnFactory.validateObject(PooledObject)
public static final AGPoolProp testOnReturn
BaseGenericObjectPool.setTestOnReturn(boolean)
,
AGConnFactory.validateObject(PooledObject)
public static final AGPoolProp timeBetweenEvictionRunsMillis
BaseGenericObjectPool.setTimeBetweenEvictionRunsMillis(long)
public static final AGPoolProp minEvictableIdleTimeMillis
BaseGenericObjectPool.setMinEvictableIdleTimeMillis(long)
public static final AGPoolProp testWhileIdle
BaseGenericObjectPool.setTestWhileIdle(boolean)
public static final AGPoolProp softMinEvictableIdleTimeMillis
BaseGenericObjectPool.setSoftMinEvictableIdleTimeMillis(long)
public static final AGPoolProp numTestsPerEvictionRun
BaseGenericObjectPool.setNumTestsPerEvictionRun(int)
public static final AGPoolProp warmup
public static final AGPoolProp warmupIncludeStrings
public static final AGPoolProp warmupIncludeTriples
public static final AGPoolProp lifo
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 nullCopyright © 2024 Franz Inc.. All rights reserved.