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
Constructors -
Method Summary
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 classBasePooledObjectFactory<AGRepositoryConnection>- Throws:
Exception
-
wrap
- Specified by:
wrapin classBasePooledObjectFactory<AGRepositoryConnection>
-
activateObject
- Specified by:
activateObjectin interfacePooledObjectFactory<AGRepositoryConnection>- Overrides:
activateObjectin classBasePooledObjectFactory<AGRepositoryConnection>- Throws:
RepositoryException
-
validateObject
- Specified by:
validateObjectin interfacePooledObjectFactory<AGRepositoryConnection>- Overrides:
validateObjectin classBasePooledObjectFactory<AGRepositoryConnection>
-
destroyObject
- Specified by:
destroyObjectin interfacePooledObjectFactory<AGRepositoryConnection>- Overrides:
destroyObjectin classBasePooledObjectFactory<AGRepositoryConnection>
-