public class RedisCollectionConfig extends java.lang.Object implements CollectionsConfig
限定符和类型 | 字段和说明 |
---|---|
protected Codec |
codec |
static java.lang.String |
DEFAULT_REDIS_HOST |
static int |
DEFAULT_REDIS_PORT |
static java.lang.String |
NAME |
构造器和说明 |
---|
RedisCollectionConfig() |
RedisCollectionConfig(Codec codec,
java.lang.String host,
int port) |
RedisCollectionConfig(java.lang.String host,
int port) |
RedisCollectionConfig(java.lang.String host,
int port,
java.lang.String password) |
限定符和类型 | 方法和说明 |
---|---|
void |
addService(RedisCollectionConfig redisCollectionConfig) |
Codec |
getCodec() |
java.lang.String |
getHost() |
int |
getMaxConnection() |
java.lang.String |
getName()
获取名字
|
java.lang.String |
getPassword() |
FineJedisPool |
getPool() |
int |
getPort() |
java.lang.String |
getServerType() |
java.util.List<RedisCollectionConfig> |
getServiceList() |
void |
setHost(java.lang.String host) |
void |
setMaxConnection(int maxConnection) |
void |
setPassword(java.lang.String password) |
void |
setPool(FineJedisPool pool) |
void |
setPort(int port) |
void |
setServerType(java.lang.String serverType) |
void |
setServiceList(java.util.List<RedisCollectionConfig> serviceList) |
public static final java.lang.String NAME
public static java.lang.String DEFAULT_REDIS_HOST
public static int DEFAULT_REDIS_PORT
protected Codec codec
public RedisCollectionConfig(Codec codec, java.lang.String host, int port)
public RedisCollectionConfig(java.lang.String host, int port, java.lang.String password)
public RedisCollectionConfig()
public RedisCollectionConfig(java.lang.String host, int port)
public java.lang.String getHost()
public void setHost(java.lang.String host)
public int getPort()
public void setPort(int port)
public Codec getCodec()
public int getMaxConnection()
public void setMaxConnection(int maxConnection)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public java.lang.String getServerType()
public void setServerType(java.lang.String serverType)
public java.util.List<RedisCollectionConfig> getServiceList()
public void setServiceList(java.util.List<RedisCollectionConfig> serviceList)
public void addService(RedisCollectionConfig redisCollectionConfig)
public FineJedisPool getPool()
public void setPool(FineJedisPool pool)
public java.lang.String getName()
CollectionsConfig
getName
在接口中 CollectionsConfig