Package com.foxinmy.weixin4j.cache
Class MemcacheCacheStorager.MemcachePoolConfig
- java.lang.Object
-
- com.foxinmy.weixin4j.cache.MemcacheCacheStorager.MemcachePoolConfig
-
- Enclosing class:
- MemcacheCacheStorager<T extends Cacheable>
public static class MemcacheCacheStorager.MemcachePoolConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
aliveCheck
static int
consistentHash
static boolean
failback
static boolean
failover
static String
HOST
static int
initConn
static int
mainSleep
static long
maxBusyTime
static int
maxConn
static int
maxIdle
static int
minConn
static boolean
nagle
static int
PORT
static int
socketConnectTO
static int
socketTO
static int
WEIGHT
-
Constructor Summary
Constructors Constructor Description MemcachePoolConfig()
{localhost:11211,1}MemcachePoolConfig(String host)
{host:11211,1}MemcachePoolConfig(String host, int port)
{host:port,1}MemcachePoolConfig(String host, int port, int weight)
{host:port,weight}
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemcacheCacheStorager.MemcachePoolConfig
addServer(String host)
MemcacheCacheStorager.MemcachePoolConfig
addServer(String host, int port)
MemcacheCacheStorager.MemcachePoolConfig
addServer(String host, int port, int weight)
String[]
getServers()
Integer[]
getWeights()
String
toString()
-
-
-
Field Detail
-
HOST
public static final String HOST
- See Also:
- Constant Field Values
-
PORT
public static final int PORT
- See Also:
- Constant Field Values
-
WEIGHT
public static final int WEIGHT
- See Also:
- Constant Field Values
-
minConn
public static int minConn
-
initConn
public static int initConn
-
maxConn
public static int maxConn
-
maxIdle
public static int maxIdle
-
maxBusyTime
public static long maxBusyTime
-
socketTO
public static int socketTO
-
socketConnectTO
public static int socketConnectTO
-
failover
public static boolean failover
-
failback
public static boolean failback
-
nagle
public static boolean nagle
-
aliveCheck
public static boolean aliveCheck
-
consistentHash
public static final int consistentHash
- See Also:
- Constant Field Values
-
mainSleep
public static final int mainSleep
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MemcachePoolConfig
public MemcachePoolConfig()
{localhost:11211,1}
-
MemcachePoolConfig
public MemcachePoolConfig(String host)
{host:11211,1}- Parameters:
host
- 主机
-
MemcachePoolConfig
public MemcachePoolConfig(String host, int port)
{host:port,1}- Parameters:
host
- 主机port
- 端口
-
MemcachePoolConfig
public MemcachePoolConfig(String host, int port, int weight)
{host:port,weight}- Parameters:
host
- 主机port
- 端口weight
- 权重
-
-
Method Detail
-
addServer
public MemcacheCacheStorager.MemcachePoolConfig addServer(String host)
-
addServer
public MemcacheCacheStorager.MemcachePoolConfig addServer(String host, int port)
-
addServer
public MemcacheCacheStorager.MemcachePoolConfig addServer(String host, int port, int weight)
-
getServers
public String[] getServers()
-
getWeights
public Integer[] getWeights()
-
-