Package com.franz.agraph.pool
Class AGConnFactory
java.lang.Object
org.apache.commons.pool2.BaseObject
org.apache.commons.pool2.BasePooledObjectFactory<AGRepositoryConnection>
com.franz.agraph.pool.AGConnFactory
- All Implemented Interfaces:
org.apache.commons.pool2.PooledObjectFactory<AGRepositoryConnection>
public class AGConnFactory
extends org.apache.commons.pool2.BasePooledObjectFactory<AGRepositoryConnection>
implements org.apache.commons.pool2.PooledObjectFactory<AGRepositoryConnection>
Adapts the
AGRepositoryConnection API
to the commons-pool factory interface,
leaving creation of the connection (and configuration)
to a subclass, defined by users of this library.- Since:
- v4.3.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateObject(org.apache.commons.pool2.PooledObject<AGRepositoryConnection> pooled) create()voiddestroyObject(org.apache.commons.pool2.PooledObject<AGRepositoryConnection> pooled) booleanvalidateObject(org.apache.commons.pool2.PooledObject<AGRepositoryConnection> pooled) org.apache.commons.pool2.PooledObject<AGRepositoryConnection>wrap(AGRepositoryConnection conn) Methods inherited from class org.apache.commons.pool2.BasePooledObjectFactory
makeObject, passivateObjectMethods inherited from class org.apache.commons.pool2.BaseObject
toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.pool2.PooledObjectFactory
destroyObject, makeObject, passivateObject
-
Constructor Details
-
AGConnFactory
-
-
Method Details
-
create
- Specified by:
createin classorg.apache.commons.pool2.BasePooledObjectFactory<AGRepositoryConnection>- Throws:
Exception
-
wrap
public org.apache.commons.pool2.PooledObject<AGRepositoryConnection> wrap(AGRepositoryConnection conn) - Specified by:
wrapin classorg.apache.commons.pool2.BasePooledObjectFactory<AGRepositoryConnection>
-
activateObject
public void activateObject(org.apache.commons.pool2.PooledObject<AGRepositoryConnection> pooled) throws RepositoryException - Specified by:
activateObjectin interfaceorg.apache.commons.pool2.PooledObjectFactory<AGRepositoryConnection>- Overrides:
activateObjectin classorg.apache.commons.pool2.BasePooledObjectFactory<AGRepositoryConnection>- Throws:
RepositoryException
-
validateObject
- Specified by:
validateObjectin interfaceorg.apache.commons.pool2.PooledObjectFactory<AGRepositoryConnection>- Overrides:
validateObjectin classorg.apache.commons.pool2.BasePooledObjectFactory<AGRepositoryConnection>
-
destroyObject
- Specified by:
destroyObjectin interfaceorg.apache.commons.pool2.PooledObjectFactory<AGRepositoryConnection>- Overrides:
destroyObjectin classorg.apache.commons.pool2.BasePooledObjectFactory<AGRepositoryConnection>
-