S - source data typeT - target data typepublic interface DataSource<S,T>
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the data source.
|
SentinelProperty<T> |
getProperty()
Get
SentinelProperty of the data source. |
T |
loadConfig()
Load data data source as the target type.
|
S |
readSource()
Read original data from the data source.
|
void |
writeDataSource(T values)
Write the
values to the data source. |
T loadConfig() throws Exception
ExceptionS readSource() throws Exception
ExceptionSentinelProperty<T> getProperty()
SentinelProperty of the data source.void writeDataSource(T values) throws Exception
values to the data source.values - ExceptionCopyright © 2018 Alibaba Group. All rights reserved.