public class AGConnFactory extends org.apache.commons.pool2.BasePooledObjectFactory<AGRepositoryConnection> implements org.apache.commons.pool2.PooledObjectFactory<AGRepositoryConnection>
AGRepositoryConnection API
to the commons-pool factory interface,
leaving creation of the connection (and configuration)
to a subclass, defined by users of this library.| Constructor and Description |
|---|
AGConnFactory(AGConnConfig props) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateObject(org.apache.commons.pool2.PooledObject<AGRepositoryConnection> pooled) |
AGRepositoryConnection |
create() |
void |
destroyObject(org.apache.commons.pool2.PooledObject<AGRepositoryConnection> pooled) |
boolean |
validateObject(org.apache.commons.pool2.PooledObject<AGRepositoryConnection> pooled)
|
org.apache.commons.pool2.PooledObject<AGRepositoryConnection> |
wrap(AGRepositoryConnection conn) |
makeObject, passivateObjectpublic AGConnFactory(AGConnConfig props)
public AGRepositoryConnection create() throws Exception
create in class org.apache.commons.pool2.BasePooledObjectFactory<AGRepositoryConnection>Exceptionpublic org.apache.commons.pool2.PooledObject<AGRepositoryConnection> wrap(AGRepositoryConnection conn)
wrap in class org.apache.commons.pool2.BasePooledObjectFactory<AGRepositoryConnection>public void activateObject(org.apache.commons.pool2.PooledObject<AGRepositoryConnection> pooled) throws RepositoryException
activateObject in interface org.apache.commons.pool2.PooledObjectFactory<AGRepositoryConnection>activateObject in class org.apache.commons.pool2.BasePooledObjectFactory<AGRepositoryConnection>RepositoryExceptionpublic boolean validateObject(org.apache.commons.pool2.PooledObject<AGRepositoryConnection> pooled)
validateObject in interface org.apache.commons.pool2.PooledObjectFactory<AGRepositoryConnection>validateObject in class org.apache.commons.pool2.BasePooledObjectFactory<AGRepositoryConnection>public void destroyObject(org.apache.commons.pool2.PooledObject<AGRepositoryConnection> pooled)
destroyObject in interface org.apache.commons.pool2.PooledObjectFactory<AGRepositoryConnection>destroyObject in class org.apache.commons.pool2.BasePooledObjectFactory<AGRepositoryConnection>Copyright © 2018 Franz Inc.. All rights reserved.