com.solarmetric.datasource
Class DataSourceImpl.SortablePool
java.lang.Object
|
+--com.solarmetric.datasource.DataSourceImpl.SortablePool
- All Implemented Interfaces:
- DataSourceImpl.Pool
- Enclosing class:
- DataSourceImpl
- public class DataSourceImpl.SortablePool
- extends Object
- implements DataSourceImpl.Pool
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DataSourceImpl.SortablePool
public DataSourceImpl.SortablePool(DataSourceImpl source)
toString
public String toString()
- Overrides:
toString
in class Object
toString
public StringBuffer toString(StringBuffer buffer)
getTotalSize
public int getTotalSize()
- Returns the size of the connection pool + the size of the
taken connections.
closeAll
public void closeAll()
- Description copied from interface:
DataSourceImpl.Pool
- Close all pooled connections.
- Specified by:
closeAll
in interface DataSourceImpl.Pool
getConnection
public Connection getConnection(JDBCConnectionRequestInfo cri)
throws SQLException
- Description copied from interface:
DataSourceImpl.Pool
- Obtain a connection from the pool.
- Specified by:
getConnection
in interface DataSourceImpl.Pool
- Following copied from interface:
com.solarmetric.datasource.DataSourceImpl.Pool
- Parameters:
cri
- the request information.- Returns:
- a pooled or new Connection.
setMaxPool
public void setMaxPool(int max)
- Description copied from interface:
DataSourceImpl.Pool
- Set the maximum size of the pool.
- Specified by:
setMaxPool
in interface DataSourceImpl.Pool
- Following copied from interface:
com.solarmetric.datasource.DataSourceImpl.Pool
- Parameters:
max
- the maximum size
getMaxPool
public int getMaxPool()
- Specified by:
getMaxPool
in interface DataSourceImpl.Pool
- Following copied from interface:
com.solarmetric.datasource.DataSourceImpl.Pool
- Returns:
- the maximum size of the pool.
setMinPool
public void setMinPool(int min)
- Specified by:
setMinPool
in interface DataSourceImpl.Pool
- Following copied from interface:
com.solarmetric.datasource.DataSourceImpl.Pool
- Parameters:
min
- the minimum size of the pool.
getMinPool
public int getMinPool()
- Specified by:
getMinPool
in interface DataSourceImpl.Pool
- Following copied from interface:
com.solarmetric.datasource.DataSourceImpl.Pool
- Returns:
- the minimum size of the pool.
close
public void close(PoolConnection conn,
boolean remove)
throws SQLException
- Description copied from interface:
DataSourceImpl.Pool
- Close a pooled connection.
- Specified by:
close
in interface DataSourceImpl.Pool
- Following copied from interface:
com.solarmetric.datasource.DataSourceImpl.Pool
- Parameters:
conn
- the connection to close.remove
- if true, remove the connection from the pool.
clean
public void clean()
throws SQLException
- removes dead connections from the pool.
- Specified by:
clean
in interface DataSourceImpl.Pool
Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.