public interface ViburObjectFactory extends org.vibur.objectpool.PoolObjectFactory<ConnHolder>
ConnectionFactory. These are the factory's
version manipulation methods and the create connection with credentials method.| Modifier and Type | Method and Description |
|---|---|
boolean |
compareAndSetVersion(int expect,
int update)
Atomically sets the version value to the given updated value
if the current value
== the expected value. |
ConnHolder |
create() |
ConnHolder |
create(Connector connector)
Creates a new
ConnHolder object using the given connector. |
int |
version()
Gets the current version value.
|
ConnHolder create() throws ViburDBCPException
create in interface org.vibur.objectpool.PoolObjectFactory<ConnHolder>ViburDBCPException - if cannot create or initialize the raw JDBC ConnectionConnHolder create(Connector connector) throws ViburDBCPException
ConnHolder object using the given connector. This object is presumed to be
ready (and valid) for immediate use. This method never return null.connector - the JDBC connector; it contains the database credentialsViburDBCPException - if cannot create or initialize the raw JDBC Connectionint version()
boolean compareAndSetVersion(int expect,
int update)
== the expected value.expect - the expected version valueupdate - the new version valueCopyright © 2013-2019 vibur.org. All Rights Reserved.