类 RedisDataSourceFactoryBean
java.lang.Object
com.alibaba.cloud.sentinel.datasource.factorybean.RedisDataSourceFactoryBean
- 所有已实现的接口:
org.springframework.beans.factory.FactoryBean<com.alibaba.csp.sentinel.datasource.redis.RedisDataSource>
public class RedisDataSourceFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<com.alibaba.csp.sentinel.datasource.redis.RedisDataSource>
A
FactoryBean for creating RedisDataSource instance.- 作者:
- lengleng
- 另请参阅:
-
RedisDataSource
-
字段概要
从接口继承的字段 org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明com.alibaba.csp.sentinel.datasource.ConverterintgetHost()getNodes()com.alibaba.csp.sentinel.datasource.redis.RedisDataSourceClass<?>intgetPort()voidsetChannel(String channel) voidsetConverter(com.alibaba.csp.sentinel.datasource.Converter converter) voidsetDatabase(int database) voidvoidsetMasterId(String masterId) voidvoidsetPassword(String password) voidsetPort(int port) voidsetRuleKey(String ruleKey) voidsetTimeout(Duration timeout) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.springframework.beans.factory.FactoryBean
isSingleton
-
构造器详细资料
-
RedisDataSourceFactoryBean
public RedisDataSourceFactoryBean()
-
-
方法详细资料
-
getObject
public com.alibaba.csp.sentinel.datasource.redis.RedisDataSource getObject()- 指定者:
getObject在接口中org.springframework.beans.factory.FactoryBean<com.alibaba.csp.sentinel.datasource.redis.RedisDataSource>
-
getObjectType
- 指定者:
getObjectType在接口中org.springframework.beans.factory.FactoryBean<com.alibaba.csp.sentinel.datasource.redis.RedisDataSource>
-
getConverter
public com.alibaba.csp.sentinel.datasource.Converter getConverter() -
setConverter
public void setConverter(com.alibaba.csp.sentinel.datasource.Converter converter) -
getHost
-
setHost
-
getPort
public int getPort() -
setPort
public void setPort(int port) -
getRuleKey
-
setRuleKey
-
getChannel
-
setChannel
-
getPassword
-
setPassword
-
getDatabase
public int getDatabase() -
setDatabase
public void setDatabase(int database) -
getTimeout
-
setTimeout
-
getNodes
-
setNodes
-
getMasterId
-
setMasterId
-