public class SingleDataSourceTracker extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
SingleDataSourceTracker.ServiceListener |
Constructor and Description |
---|
SingleDataSourceTracker(ObjectPoolTracker<DataSource> poolTracker,
String dataSourceId,
SingleDataSourceTracker.ServiceListener listener)
Create a new single datasource tracker
|
public SingleDataSourceTracker(ObjectPoolTracker<DataSource> poolTracker, String dataSourceId, SingleDataSourceTracker.ServiceListener listener) throws InvalidSyntaxException
poolTracker
- the pool tracker to usedataSourceId
- the id of the datasource to tracklistener
- the listener that gets notified (must not be null
)InvalidSyntaxException
protected void setDataSource(DataSource service)
public void open()
public void close()