public class FailOverRouter extends AbstractRouter
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_STRATEGY |
| Constructor and Description |
|---|
FailOverRouter() |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
getDataSource()
Used by $
RoutedDataSource to get the active data source. |
Collection<DataSource> |
getDataSources() |
void |
setDatasourceNames(String datasourceNames) |
void |
setDelimiter(String delimiter) |
void |
setStrategy(String strategy) |
void |
updateDataSources(Collection<DataSource> ds) |
getJndiResource, getOpenEJBResourcepublic static final String DEFAULT_STRATEGY
public DataSource getDataSource()
RouterRoutedDataSource to get the active data source.public void setDatasourceNames(String datasourceNames)
public void setDelimiter(String delimiter)
public void setStrategy(String strategy)
public Collection<DataSource> getDataSources()
public void updateDataSources(Collection<DataSource> ds)
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.