|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TConnectionPool
TConnectionPool represents a pool of openned connections. The pool provides services to get and put back openned connections. When instantiated a connection pool initially holds a fixed but client specified number of openned connections for a specific database URI, user and password. Once the amount of checked out connections reaches this size new connections are automatically instantiated and put to the pool to a user given size of maximum connections. Each connection pool gets a logical name that can be used by a connection pool manager that basically manages a set of connection pools.
Method Summary | |
---|---|
void |
deleteConnection(TPooledConnection p0)
Method deleteConnection |
TConnection |
getConnection()
Gets a openned connection from the pool. |
TConnectionPoolDescriptor |
getDescriptor()
Gets the TCOnnectionPoolDescriptor |
java.util.Locale |
getLocale()
Gets Locale |
java.lang.String |
getName()
Gets the connection pools logical name. |
TConnectionPoolStatistics |
getStatistics()
Method getStatistics |
void |
release()
Releases all openned connections given within the pool. |
void |
retainConnection(TConnection connection)
Retains the handed connection back to the pool. |
void |
setLocale(java.util.Locale locale)
Sets Locale |
Method Detail |
---|
TConnectionPoolStatistics getStatistics()
void deleteConnection(TPooledConnection p0)
p0
- a TConnectionWrapperTConnection getConnection() throws TConnectionNotAvailableException
TConnectionNotAvailableException
void retainConnection(TConnection connection)
connection
- is the TConnection that should be put pack into the pool.void release()
java.lang.String getName()
TConnectionPoolDescriptor getDescriptor()
void setLocale(java.util.Locale locale)
java.util.Locale getLocale()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |