| |
|
| java.lang.Object org.logicalcobwebs.proxool.Prototyper
Prototyper | public class Prototyper (Code) | | Responsible for prototyping connections for all pools
version: $Revision: 1.14 $, $Date: 2006/03/23 11:44:57 $ author: bill author: $Author: billhorsman $ (current maintainer) since: Proxool 0.8 |
cancel | public void cancel()(Code) | | Cancel all current prototyping
|
checkSimultaneousBuildThrottle | protected void checkSimultaneousBuildThrottle() throws SQLException(Code) | | Checks whether we are currently already building too many connections
throws: SQLException - if the throttle has been reached |
connectionRemoved | protected void connectionRemoved()(Code) | | This needs to be called _everytime_ a connection is removed.
|
getAlias | public String getAlias()(Code) | | The alias of the pool we are prototyping for
alias |
getConnectionCount | public long getConnectionCount()(Code) | | The total number of connections, including those being built right
now
connectionCount; |
isSweepNeeded | protected boolean isSweepNeeded()(Code) | | |
quickRefuse | public void quickRefuse() throws SQLException(Code) | | Give a quick answer to whether we should attempt to build a connection. This can be quicker
if we are massively overloaded rather than cycling through each connection in the pool to
see if it's free
throws: SQLException - if it is a waste of time even trying to get a connaction. Just because this methoddoesn't throw an exception it doesn't guarantee that one will be available. There is a slightrisk that we might tell the client to give up when a connection could become available in the next fewmilliseconds but our policy is to refuse connections quickly when overloaded. |
sweep | protected boolean sweep()(Code) | | Trigger prototyping immediately
true if something was prototyped |
triggerSweep | protected void triggerSweep()(Code) | | |
|
|
|