S - source data typeT - target data typepublic abstract class AutoRefreshDataSource<S,T> extends AbstractDataSource<S,T>
DataSource automatically fetches the backend data.| Modifier and Type | Field and Description |
|---|---|
protected long |
recommendRefreshMs |
parser, property| Constructor and Description |
|---|
AutoRefreshDataSource(ConfigParser<S,T> configParser) |
AutoRefreshDataSource(ConfigParser<S,T> configParser,
long recommendRefreshMs) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the data source.
|
getProperty, loadConfig, loadConfig, writeDataSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadSourcepublic AutoRefreshDataSource(ConfigParser<S,T> configParser)
public AutoRefreshDataSource(ConfigParser<S,T> configParser, long recommendRefreshMs)
public void close()
throws Exception
DataSourceExceptionCopyright © 2018 Alibaba Group. All rights reserved.