public class Config extends Object
Constructor and Description |
---|
Config() |
Modifier and Type | Method and Description |
---|---|
Codec |
getCodec() |
int |
getThreads() |
boolean |
isClusterConfig() |
boolean |
isUseLinuxNativeEpoll() |
Config |
setCodec(Codec codec)
Redis key/value codec.
|
Config |
setThreads(int threads) |
Config |
setUseLinuxNativeEpoll(boolean useLinuxNativeEpoll)
Activates an unix socket if servers binded to loopback interface.
|
ClusterServersConfig |
useClusterServers() |
ElasticacheServersConfig |
useElasticacheServers() |
MasterSlaveServersConfig |
useMasterSlaveConnection() |
SentinelServersConfig |
useSentinelConnection() |
SingleServerConfig |
useSingleServer() |
public Config setCodec(Codec codec)
JsonJacksonCodec
,
SerializationCodec
public Codec getCodec()
public ClusterServersConfig useClusterServers()
public ElasticacheServersConfig useElasticacheServers()
public SingleServerConfig useSingleServer()
public SentinelServersConfig useSentinelConnection()
public MasterSlaveServersConfig useMasterSlaveConnection()
public boolean isClusterConfig()
public int getThreads()
public Config setThreads(int threads)
public Config setUseLinuxNativeEpoll(boolean useLinuxNativeEpoll)
useLinuxNativeEpoll
- public boolean isUseLinuxNativeEpoll()
Copyright © 2014–2015. All rights reserved.