Package com.franz.agraph.pool
Enum Class AGPoolProp
- All Implemented Interfaces:
Serializable
,Comparable<AGPoolProp>
,Constable
Property names for
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
.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionWhen the pool is created, this many connections will be initialized, then returned to the pool.Boolean property, true means LIFO and false means FIFO retrieval of objects from poolMax number of connections that can be allocated by the pool.milliseconds to wait to borrow before throwingNoSuchElementException
When the pool is created, if this is true (default is false), a hook will be registered to close the pool.Boolean property, if true warmup is executed during pool creation.Boolean property, set to false to exclude the string table from a warmupBoolean property, set to false to exclude triple indices from a warmup -
Method Summary
Modifier and TypeMethodDescriptionstatic AGPoolProp
Returns the enum constant of this class with the specified name.static AGPoolProp[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
initialSize
When the pool is created, this many connections will be initialized, then returned to the pool.- See Also:
-
shutdownHook
When the pool is created, if this is true (default is false), a hook will be registered to close the pool. Connections will be closed whether idle or not.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. -
minIdle
- See Also:
-
maxIdle
- See Also:
-
maxActive
Max number of connections that can be allocated by the pool. If multiple clients (or different pools), are using the same AllegroGraph Server, this value should be set to something less than the SessionPorts. See Session Port Setup.- See Also:
-
maxWait
milliseconds to wait to borrow before throwingNoSuchElementException
-
testOnBorrow
CallsAGRepositoryConnection.size(org.eclipse.rdf4j.model.Resource...)
.Redundant because
AGConnFactory.activateObject(PooledObject)
always callsAGRepositoryConnection.rollback()
. -
testOnReturn
-
timeBetweenEvictionRunsMillis
-
minEvictableIdleTimeMillis
-
testWhileIdle
-
softMinEvictableIdleTimeMillis
-
numTestsPerEvictionRun
-
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 -
lifo
Boolean property, true means LIFO and false means FIFO retrieval of objects from pool
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-