|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.util.jdbc.ConnectionPool
| Constructor Summary | |
ConnectionPool(String url,
String user,
String password)
|
|
| Method Summary | |
void |
drain()
Drains the pool. |
Connection |
getConnection()
|
int |
getPoolSize()
|
void |
removeExpired()
|
void |
setCheckConnections(boolean checkConnections)
Sets the flag that determines whether the the status of connections (closed, has warnings) is checked before they are returned by getConnection(). |
void |
setCleaningInterval(long cleaningInterval)
Sets the interval for the pool cleaner to come into action. |
void |
setMaxIdleTime(long maxIdleTime)
Sets the maximum time that a connection is allowed to be idle. |
void |
setMaxUseTime(long maxUseTime)
Sets the maximum time that a connection is allowed to be used. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConnectionPool(String url,
String user,
String password)
| Method Detail |
public void setCheckConnections(boolean checkConnections)
public void setCleaningInterval(long cleaningInterval)
cleaningInterval - The interval in milliseconds.public void setMaxIdleTime(long maxIdleTime)
maxIdleTime - The maximum idle time in milliseconds.public void setMaxUseTime(long maxUseTime)
maxUseTime - The maximum time a connection can be used in
milliseconds, or a negative value if there is no maximum.
public Connection getConnection()
throws SQLException
SQLExceptionpublic void removeExpired()
public int getPoolSize()
public void drain()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||