|
Franz Inc, AllegroGraph | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<AGPoolProp> com.franz.agraph.pool.AGPoolProp
public enum AGPoolProp
Property names for AGPoolConfig
.
Property names to open a AGRepositoryConnection
.
TODO: AGRepositoryConnection.setSessionLoadInitFile(boolean)
TODO: AGRepositoryConnection.addSessionLoadScript(String)
GenericObjectPool
.
GenericObjectPool
,
GenericKeyedObjectPool.Config
Enum Constant Summary | |
---|---|
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
Calls AGRepositoryConnection.size(org.openrdf.model.Resource...) . |
|
testOnReturn
Calls AGRepositoryConnection.size(org.openrdf.model.Resource...) . |
|
testWhileIdle
|
|
timeBetweenEvictionRunsMillis
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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.
AGPoolConfig.shutdownHook
,
Runtime.addShutdownHook(Thread)
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
AGRepositoryConnection.size(org.openrdf.model.Resource...)
.
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)
Method Detail |
---|
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 name
NullPointerException
- if the argument is null
|
Copyright © 2008-2012 Franz Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |