com.solarmetric.datasource
Class DataSourceImpl.SortablePool
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractSet
|
+--java.util.HashSet
|
+--com.solarmetric.datasource.DataSourceImpl.AbstractPool
|
+--com.solarmetric.datasource.DataSourceImpl.SortablePool
- All Implemented Interfaces:
- Cloneable, Collection, DataSourceImpl.Pool, Serializable, Set
- Enclosing class:
- DataSourceImpl
- public class DataSourceImpl.SortablePool
- extends DataSourceImpl.AbstractPool
Implementation of a Pool that relies on the underlying
Connection object to implement the Sortable interface
in such a way that the highest priority Connection to be
removed from the pool will be the last element in a sorted
list of Connection objects.
- See Also:
- Serialized Form
Method Summary |
com.solarmetric.datasource.PoolConnection |
chooseConnection(Set candidates)
Choose the most appropriate Connection in the given
set to use. |
Methods inherited from class com.solarmetric.datasource.DataSourceImpl.AbstractPool |
clean, close, closeAll, getConnection, getMaxPool, getMinPool, getTotalSize, setMaxPool, setMinPool, toString, toString |
Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
DataSourceImpl.SortablePool
public DataSourceImpl.SortablePool(DataSourceImpl source)
chooseConnection
public com.solarmetric.datasource.PoolConnection chooseConnection(Set candidates)
- Description copied from interface:
DataSourceImpl.Pool
- Choose the most appropriate Connection in the given
set to use.
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.