com.foxinmy.weixin4j.cache
Class MemcacheCacheStorager.MemcachePoolConfig

java.lang.Object
  extended by com.foxinmy.weixin4j.cache.MemcacheCacheStorager.MemcachePoolConfig
Enclosing class:
MemcacheCacheStorager<T extends Cacheable>

public static class MemcacheCacheStorager.MemcachePoolConfig
extends Object


Field Summary
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
MemcacheCacheStorager.MemcachePoolConfig()
          {localhost:11211,1}
MemcacheCacheStorager.MemcachePoolConfig(String host)
          {host:11211,1}
MemcacheCacheStorager.MemcachePoolConfig(String host, int port)
          {host:port,1}
MemcacheCacheStorager.MemcachePoolConfig(String host, int port, int weight)
          {host:port,weight}
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

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 - 权重
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()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014–2017. All rights reserved.