S - source data typeT - target data typepublic interface ReadableDataSource<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.
|
T loadConfig() throws Exception
Exception - IO or other error occursS readSource() throws Exception
Exception - IO or other error occursSentinelProperty<T> getProperty()
SentinelProperty of the data source.Copyright © 2019 Alibaba Group. All rights reserved.