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
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
MemcacheCacheStorager.MemcachePoolConfig
public MemcacheCacheStorager.MemcachePoolConfig()
- {localhost:11211,1}
MemcacheCacheStorager.MemcachePoolConfig
public MemcacheCacheStorager.MemcachePoolConfig(String host)
- {host:11211,1}
- Parameters:
host - 主机
MemcacheCacheStorager.MemcachePoolConfig
public MemcacheCacheStorager.MemcachePoolConfig(String host,
int port)
- {host:port,1}
- Parameters:
host - 主机port - 端口
MemcacheCacheStorager.MemcachePoolConfig
public MemcacheCacheStorager.MemcachePoolConfig(String host,
int port,
int weight)
- {host:port,weight}
- Parameters:
host - 主机port - 端口weight - 权重
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()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2014–2017. All rights reserved.