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:
PooledObjectFactory<AGRepositoryConnection>
public class AGConnFactory
extends BasePooledObjectFactory<AGRepositoryConnection>
implements 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
-
Method Summary
Methods inherited from class org.apache.commons.pool2.BasePooledObjectFactory
makeObject, passivateObject
Methods inherited from class org.apache.commons.pool2.BaseObject
toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.commons.pool2.PooledObjectFactory
destroyObject, makeObject, passivateObject
-
Constructor Details
-
AGConnFactory
-
-
Method Details
-
create
- Specified by:
create
in classBasePooledObjectFactory<AGRepositoryConnection>
- Throws:
Exception
-
wrap
- Specified by:
wrap
in classBasePooledObjectFactory<AGRepositoryConnection>
-
activateObject
- Specified by:
activateObject
in interfacePooledObjectFactory<AGRepositoryConnection>
- Overrides:
activateObject
in classBasePooledObjectFactory<AGRepositoryConnection>
- Throws:
RepositoryException
-
validateObject
- Specified by:
validateObject
in interfacePooledObjectFactory<AGRepositoryConnection>
- Overrides:
validateObject
in classBasePooledObjectFactory<AGRepositoryConnection>
-
destroyObject
- Specified by:
destroyObject
in interfacePooledObjectFactory<AGRepositoryConnection>
- Overrides:
destroyObject
in classBasePooledObjectFactory<AGRepositoryConnection>
-