|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.logicalcobwebs.proxool.Prototyper
public class Prototyper
Responsible for prototyping connections for all pools
| Constructor Summary | |
|---|---|
Prototyper(org.logicalcobwebs.proxool.ConnectionPool connectionPool)
|
|
| Method Summary | |
|---|---|
void |
cancel()
Cancel all current prototyping |
java.lang.String |
getAlias()
The alias of the pool we are prototyping for |
long |
getConnectionCount()
The total number of connections, including those being built right now |
void |
quickRefuse()
Give a quick answer to whether we should attempt to build a connection. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Prototyper(org.logicalcobwebs.proxool.ConnectionPool connectionPool)
| Method Detail |
|---|
public long getConnectionCount()
public void cancel()
public java.lang.String getAlias()
public void quickRefuse()
throws java.sql.SQLException
java.sql.SQLException - if it is a waste of time even trying to get a connaction. Just because this method
doesn't throw an exception it doesn't guarantee that one will be available. There is a slight
risk that we might tell the client to give up when a connection could become available in the next few
milliseconds but our policy is to refuse connections quickly when overloaded.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||