public class TConnectionPoolImpl extends java.lang.Object implements TConnectionPool
Constructor and Description |
---|
TConnectionPoolImpl(org.w3c.dom.Element element)
It is recommend to no longer use this method.
|
TConnectionPoolImpl(java.lang.String name,
TConnectionPoolDescriptor descriptor,
boolean poolTaminoConnections,
java.util.Locale locale)
Intitializes the connection pool with a logical name.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteConnection(TPooledConnection connection)
Deletes a pooled connection.
|
TConnection |
getConnection()
Gets a opened connection from the pool.
|
TConnectionPoolDescriptor |
getDescriptor()
Gets the TCOnnectionPoolDescriptor
|
java.util.Locale |
getLocale()
Gets the locale.
|
java.lang.String |
getName()
Gets the connection pools logical name.
|
TConnectionPoolStatistics |
getStatistics()
Method getStatistics
|
void |
release()
Releases all opened connections given within the pool.
|
void |
retainConnection(TConnection connection)
Retains the handed connection back to the pool.
|
void |
setLocale(java.util.Locale locale)
Sets the locale.
|
java.lang.String |
toString()
Shows the current status of the connection pool as a String.
|
public TConnectionPoolImpl(java.lang.String name, TConnectionPoolDescriptor descriptor, boolean poolTaminoConnections, java.util.Locale locale) throws TServerNotAvailableException
TServerNotAvailableException
public TConnectionPoolImpl(org.w3c.dom.Element element) throws TConnectionNotAvailableException
element
- describes the above XML tree structure.TConnectionNotAvailableException
public TConnection getConnection() throws TConnectionNotAvailableException
getConnection
in interface TConnectionPool
TConnectionNotAvailableException
public void deleteConnection(TPooledConnection connection)
deleteConnection
in interface TConnectionPool
connection
- a TConnectionWrapperpublic void retainConnection(TConnection connection)
retainConnection
in interface TConnectionPool
connection
- is the TConnection that should be put pack into the pool.public void release()
release
in interface TConnectionPool
public java.lang.String getName()
getName
in interface TConnectionPool
public void setLocale(java.util.Locale locale)
setLocale
in interface TConnectionPool
public java.util.Locale getLocale()
getLocale
in interface TConnectionPool
public java.lang.String toString()
toString
in class java.lang.Object
public TConnectionPoolStatistics getStatistics()
TConnectionPool
getStatistics
in interface TConnectionPool
public TConnectionPoolDescriptor getDescriptor()
TConnectionPool
getDescriptor
in interface TConnectionPool
Copyright (c) 2017 Software AG. All Rights Reserved.