Serialized Form
|
Package com.jolbox.bonecp |
serialVersionUID: -8386816681977604817L
poolAvailabilityThreshold
int poolAvailabilityThreshold
- Create more connections when we hit x% of our possible number of connections.
partitionCount
int partitionCount
- Number of partitions passed in constructor.
partitions
ConnectionPartition[] partitions
- Partitions handle.
keepAliveScheduler
java.util.concurrent.ScheduledExecutorService keepAliveScheduler
- Handle to factory that creates 1 thread per partition that periodically wakes up and performs some
activity on the connection.
maxAliveScheduler
java.util.concurrent.ScheduledExecutorService maxAliveScheduler
- Handle to factory that creates 1 thread per partition that periodically wakes up and performs some
activity on the connection.
connectionsScheduler
java.util.concurrent.ExecutorService connectionsScheduler
- Executor for threads watching each partition to dynamically create new threads/kill off excess ones.
config
BoneCPConfig config
- Configuration object used in constructor.
releaseHelperThreadsConfigured
boolean releaseHelperThreadsConfigured
- If set to true, config has specified the use of helper threads.
releaseHelper
java.util.concurrent.ExecutorService releaseHelper
- pointer to the thread containing the release helper threads.
statementCloseHelperExecutor
java.util.concurrent.ExecutorService statementCloseHelperExecutor
- pointer to the service containing the statement close helper threads.
asyncExecutor
java.util.concurrent.ExecutorService asyncExecutor
- Executor service for obtaining a connection in an asynchronous fashion.
mbs
javax.management.MBeanServer mbs
- JMX support.
terminationLock
java.util.concurrent.locks.Lock terminationLock
- Prevent repeated termination of all connections when the DB goes down.
closeConnectionWatch
boolean closeConnectionWatch
- If set to true, create a new thread that monitors a connection and displays warnings if application failed to
close the connection.
closeConnectionExecutor
java.util.concurrent.ExecutorService closeConnectionExecutor
- Threads monitoring for bad connection requests.
poolShuttingDown
boolean poolShuttingDown
- set to true if the connection pool has been flagged as shutting down.
shutdownStackTrace
java.lang.String shutdownStackTrace
- Placeholder to give more useful info in case of a double shutdown.
finalizableRefs
java.util.Map<K,V> finalizableRefs
- Reference of objects that are to be watched.
finalizableRefQueue
com.google.common.base.FinalizableReferenceQueue finalizableRefQueue
- Watch for connections that should have been safely closed but the application forgot.
connectionTimeoutInMs
long connectionTimeoutInMs
- Time to wait before timing out the connection. Default in config is Long.MAX_VALUE milliseconds.
closeConnectionWatchTimeoutInMs
long closeConnectionWatchTimeoutInMs
- No of ms to wait for thread.join() in connection watch thread.
statementReleaseHelperThreadsConfigured
boolean statementReleaseHelperThreadsConfigured
- If set to true, config has specified the use of statement release helper threads.
statementsPendingRelease
LinkedTransferQueue<E> statementsPendingRelease
- Scratch queue of statments awaiting to be closed.
statisticsEnabled
boolean statisticsEnabled
- if true, we care about statistics.
statistics
Statistics statistics
- statistics handle.
defaultReadOnly
java.lang.Boolean defaultReadOnly
- Config setting.
defaultCatalog
java.lang.String defaultCatalog
- Config setting.
defaultTransactionIsolationValue
int defaultTransactionIsolationValue
- Config setting.
defaultAutoCommit
java.lang.Boolean defaultAutoCommit
- Config setting.
serialVersionUID: 6090570773474131622L
minConnectionsPerPartition
int minConnectionsPerPartition
- Min number of connections per partition.
maxConnectionsPerPartition
int maxConnectionsPerPartition
- Max number of connections per partition.
acquireIncrement
int acquireIncrement
- Number of new connections to create in 1 batch.
partitionCount
int partitionCount
- Number of partitions.
jdbcUrl
java.lang.String jdbcUrl
- DB connection string.
username
java.lang.String username
- User name to use.
password
java.lang.String password
- Password to use.
idleConnectionTestPeriodInSeconds
long idleConnectionTestPeriodInSeconds
- Connections older than this are sent a keep-alive statement.
idleMaxAgeInSeconds
long idleMaxAgeInSeconds
- Maximum age of an unused connection before it is closed off.
connectionTestStatement
java.lang.String connectionTestStatement
- SQL statement to use for keep-alive/test of connection.
statementsCacheSize
int statementsCacheSize
- Min no of prepared statements to cache.
statementsCachedPerConnection
int statementsCachedPerConnection
- No of statements that can be cached per connection. Deprecated.
releaseHelperThreads
int releaseHelperThreads
- Number of release-connection helper threads to create per partition.
statementReleaseHelperThreads
int statementReleaseHelperThreads
- Number of statement release helper threads to create.
connectionHook
ConnectionHook connectionHook
- Hook class (external).
initSQL
java.lang.String initSQL
- Query to send once per connection to the database.
closeConnectionWatch
boolean closeConnectionWatch
- If set to true, create a new thread that monitors a connection and displays warnings if application failed to
close the connection. FOR DEBUG PURPOSES ONLY!
logStatementsEnabled
boolean logStatementsEnabled
- If set to true, log SQL statements being executed.
acquireRetryDelayInMs
long acquireRetryDelayInMs
- After attempting to acquire a connection and failing, wait for this value before attempting to acquire a new connection again.
acquireRetryAttempts
int acquireRetryAttempts
- After attempting to acquire a connection and failing, try to connect these many times before giving up.
lazyInit
boolean lazyInit
- If set to true, the connection pool will remain empty until the first connection is obtained.
transactionRecoveryEnabled
boolean transactionRecoveryEnabled
- If set to true, stores all activity on this connection to allow for replaying it again.
connectionHookClassName
java.lang.String connectionHookClassName
- Connection hook class name.
classLoader
java.lang.ClassLoader classLoader
- Classloader to use when loading the JDBC driver.
poolName
java.lang.String poolName
- Name of the pool for JMX and thread names.
disableJMX
boolean disableJMX
- Set to true to disable JMX.
datasourceBean
javax.sql.DataSource datasourceBean
- If set, use datasourceBean.getConnection() to obtain a new connection.
queryExecuteTimeLimitInMs
long queryExecuteTimeLimitInMs
- Queries taking longer than this limit to execute are logged.
poolAvailabilityThreshold
int poolAvailabilityThreshold
- Create more connections when we hit x% of our possible number of connections.
disableConnectionTracking
boolean disableConnectionTracking
- Disable connection tracking.
driverProperties
java.util.Properties driverProperties
- Used when the alternate way of obtaining a connection is required
connectionTimeoutInMs
long connectionTimeoutInMs
- Time to wait before a call to getConnection() times out and returns an error.
closeConnectionWatchTimeoutInMs
long closeConnectionWatchTimeoutInMs
- Time in ms to wait for close connection watch thread.
maxConnectionAgeInSeconds
long maxConnectionAgeInSeconds
- A connection older than maxConnectionAge will be destroyed and purged from the pool.
configFile
java.lang.String configFile
- Config property.
serviceOrder
java.lang.String serviceOrder
- Queue mode. Values currently understood are FIFO and LIFO.
statisticsEnabled
boolean statisticsEnabled
- If true, keep track of some statistics.
defaultAutoCommit
java.lang.Boolean defaultAutoCommit
- The default auto-commit state of created connections.
defaultReadOnly
java.lang.Boolean defaultReadOnly
- The default read-only state of created connections.
defaultTransactionIsolation
java.lang.String defaultTransactionIsolation
- The default transaction isolation state of created connections.
defaultCatalog
java.lang.String defaultCatalog
- The default catalog state of created connections.
defaultTransactionIsolationValue
int defaultTransactionIsolationValue
- The parsed transaction isolation value. Default = driver value
serialVersionUID: -1561804548443209469L
logWriter
java.io.PrintWriter logWriter
- Config setting.
rwl
java.util.concurrent.locks.ReadWriteLock rwl
- Lock for init.
driverClass
java.lang.String driverClass
- JDBC driver to use.
serialVersionUID: -1875525368357897907L
size
java.util.concurrent.atomic.AtomicInteger size
- No of elements in queue.
maxQueueSize
int maxQueueSize
- bound of queue.
lock
java.util.concurrent.locks.ReentrantLock lock
- Main lock guarding all access
serialVersionUID: -7864443421028454573L
freeConnections
TransferQueue<E> freeConnections
- Connections available to be taken
acquireIncrement
int acquireIncrement
- When connections start running out, add these number of new connections.
minConnections
int minConnections
- Minimum number of connections to start off with.
maxConnections
int maxConnections
- Maximum number of connections that will ever be created.
statsLock
java.util.concurrent.locks.ReentrantReadWriteLock statsLock
- Statistics lock.
createdConnections
int createdConnections
- Number of connections that have been created.
url
java.lang.String url
- DB details.
username
java.lang.String username
- DB details.
password
java.lang.String password
- DB details.
unableToCreateMoreTransactions
boolean unableToCreateMoreTransactions
- If set to true, don't bother calling method to attempt to create
more connections because we've hit our limit.
connectionsPendingRelease
LinkedTransferQueue<E> connectionsPendingRelease
- Scratch queue of connections awaiting to be placed back in queue.
disableTracking
boolean disableTracking
- Config setting.
poolWatchThreadSignalQueue
java.util.concurrent.BlockingQueue<E> poolWatchThreadSignalQueue
- Signal trigger to pool watch thread. Making it a queue means our signal is persistent.
queryExecuteTimeLimitInNanoSeconds
long queryExecuteTimeLimitInNanoSeconds
- Store the unit translation here to avoid recalculating it in statement handles.
serialVersionUID: -3503791017846313243L
serialVersionUID: -3223113410248163686L
readObject
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Reconstitutes the Queue instance from a stream (that is,
deserializes it).
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
writeObject
private void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException
- Saves the state to a stream (that is, serializes it).
- Serial Data:
- All of the elements (each an
E) in
the proper order, followed by a null
- Throws:
java.io.IOException
serialVersionUID: -5851777807851030925L
rnd
long rnd
- The random seed. We can't use super.seed.
initialized
boolean initialized
- Initialization flag to permit the first and only allowed call
to setSeed (inside Random constructor) to succeed. We can't
allow others since it would cause setting seed in one part of a
program to unintentionally impact other usages by the thread.
pad0
long pad0
pad1
long pad1
pad2
long pad2
pad3
long pad3
pad4
long pad4
pad5
long pad5
pad6
long pad6
pad7
long pad7
Copyright © 2009-2011 JolBox. All Rights Reserved.