接口 ReadableDataSource<S,T>
- 类型参数:
S- source data typeT- target data type
- 所有已知实现类:
AbstractDataSource,AutoRefreshDataSource,EmptyDataSource,FileInJarReadableDataSource,FileRefreshableDataSource
public interface ReadableDataSource<S,T>
The readable data source is responsible for retrieving configs (read-only).
- 作者:
- leyou, Eric Zhao
-
方法详细资料
-
loadConfig
Load data data source as the target type.- 返回:
- the target data.
- 抛出:
Exception- IO or other error occurs
-
readSource
Read original data from the data source.- 返回:
- the original data.
- 抛出:
Exception- IO or other error occurs
-
getProperty
com.alibaba.csp.sentinel.property.SentinelProperty<T> getProperty()GetSentinelPropertyof the data source.- 返回:
- the property.
-
close
Close the data source.- 抛出:
Exception- IO or other error occurs
-