Class FileRefreshableDataSourceFactoryBean
java.lang.Object
com.alibaba.cloud.sentinel.datasource.factorybean.FileRefreshableDataSourceFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<com.alibaba.csp.sentinel.datasource.FileRefreshableDataSource>
public class FileRefreshableDataSourceFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<com.alibaba.csp.sentinel.datasource.FileRefreshableDataSource>
A
FactoryBean for creating FileRefreshableDataSource instance.- Author:
- Jim
- See Also:
-
FileRefreshableDataSource
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcom.alibaba.csp.sentinel.datasource.ConvertergetFile()com.alibaba.csp.sentinel.datasource.FileRefreshableDataSourceClass<?>longvoidsetBufSize(int bufSize) voidsetCharset(String charset) voidsetConverter(com.alibaba.csp.sentinel.datasource.Converter converter) voidvoidsetRecommendRefreshMs(long recommendRefreshMs) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
FileRefreshableDataSourceFactoryBean
public FileRefreshableDataSourceFactoryBean()
-
-
Method Details
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<com.alibaba.csp.sentinel.datasource.FileRefreshableDataSource>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<com.alibaba.csp.sentinel.datasource.FileRefreshableDataSource>
-
getFile
-
setFile
-
getCharset
-
setCharset
-
getRecommendRefreshMs
public long getRecommendRefreshMs() -
setRecommendRefreshMs
public void setRecommendRefreshMs(long recommendRefreshMs) -
getBufSize
public int getBufSize() -
setBufSize
public void setBufSize(int bufSize) -
getConverter
public com.alibaba.csp.sentinel.datasource.Converter getConverter() -
setConverter
public void setConverter(com.alibaba.csp.sentinel.datasource.Converter converter)
-