S - source data typeT - target data typepublic abstract class AbstractDataSource<S,T> extends Object implements ReadableDataSource<S,T>
| Modifier and Type | Field and Description |
|---|---|
protected Converter<S,T> |
parser |
protected SentinelProperty<T> |
property |
| Constructor and Description |
|---|
AbstractDataSource(Converter<S,T> parser) |
| Modifier and Type | Method and Description |
|---|---|
SentinelProperty<T> |
getProperty()
Get
SentinelProperty of the data source. |
T |
loadConfig()
Load data data source as the target type.
|
T |
loadConfig(S conf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, readSourceprotected final SentinelProperty<T> property
public T loadConfig() throws Exception
ReadableDataSourceloadConfig in interface ReadableDataSource<S,T>Exception - IO or other error occurspublic SentinelProperty<T> getProperty()
ReadableDataSourceSentinelProperty of the data source.getProperty in interface ReadableDataSource<S,T>Copyright © 2022 Alibaba Group. All rights reserved.