|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IConnectionPool
a connection pool
| Method Summary | |
|---|---|
void |
close()
closes the connection pool. |
void |
destroyConnection(IConnection connection)
destroy the given connection. |
long |
getIdleTimeoutMillis()
get the idle timeout for pooled connections |
long |
getLifeTimeoutMillis()
get the life timeout |
int |
getMaxActive()
return the number of max active connections |
int |
getMaxIdle()
get the number of max idle connections |
long |
getMaxWaitMillis()
get the max wait time to get a free connection by calling the getXXXConnection(). |
int |
getNumActive()
get the number of the active (borrowed) connects |
int |
getNumIdle()
get the number of idling connections connections |
void |
setIdleTimeoutMillis(long idleTimeoutMillis)
set the idle timeout for pooled connections |
void |
setLifeTimeoutMillis(long lifeTimeoutMillis)
set the life timeout |
void |
setMaxActive(int maxActive)
set the number of max active connections |
void |
setMaxIdle(int maxIdle)
set the number of max idle connections |
void |
setMaxWaitMillis(long maxWaitMillis)
set the max wait time to get a free connection by calling the getXXXConnection(). |
| Method Detail |
|---|
void destroyConnection(IConnection connection)
throws java.io.IOException
connection - the leased connection
java.io.IOException - if an exception occursint getMaxActive()
void setMaxActive(int maxActive)
maxActive - the number of max active connectionslong getMaxWaitMillis()
void setMaxWaitMillis(long maxWaitMillis)
maxWaitMillis - the max wait time to get a free connectionint getMaxIdle()
void setMaxIdle(int maxIdle)
maxIdle - the number of max idle connectionsint getNumActive()
int getNumIdle()
long getIdleTimeoutMillis()
void setIdleTimeoutMillis(long idleTimeoutMillis)
idleTimeoutMillis - the idle timeout for pooled connectionslong getLifeTimeoutMillis()
void setLifeTimeoutMillis(long lifeTimeoutMillis)
lifeTimeoutMillis - the life timeoutvoid close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||