public class MemcachedConnector
extends java.lang.Object
implements java.lang.Runnable
限定符和类型 | 类和说明 |
---|---|
static class |
MemcachedConnector.Request |
构造器和说明 |
---|
MemcachedConnector(java.net.InetAddress bind_addr,
int port,
PartitionedHashMap<java.lang.String,byte[]> cache) |
限定符和类型 | 方法和说明 |
---|---|
java.net.InetAddress |
getBindAddress() |
PartitionedHashMap<java.lang.String,byte[]> |
getCache() |
int |
getPort() |
java.util.Map<java.lang.String,java.lang.Object> |
getStats() |
java.util.concurrent.Executor |
getThreadPool() |
int |
getThreadPoolCoreThreads() |
long |
getThreadPoolIdleTime() |
int |
getThreadPoolMaxThreads() |
void |
run() |
void |
setBindAddress(java.net.InetAddress bind_addr) |
void |
setCache(PartitionedHashMap<java.lang.String,byte[]> cache) |
void |
setPort(int port) |
void |
setThreadPool(java.util.concurrent.Executor thread_pool) |
void |
setThreadPoolCoreThreads(int core_threads) |
void |
setThreadPoolIdleTime(long idle_time) |
void |
setThreadPoolMaxThreads(int max_threads) |
void |
start() |
void |
stop() |
public MemcachedConnector(java.net.InetAddress bind_addr, int port, PartitionedHashMap<java.lang.String,byte[]> cache)
public java.net.InetAddress getBindAddress()
public void setBindAddress(java.net.InetAddress bind_addr)
public int getPort()
public void setPort(int port)
public PartitionedHashMap<java.lang.String,byte[]> getCache()
public void setCache(PartitionedHashMap<java.lang.String,byte[]> cache)
public int getThreadPoolCoreThreads()
public void setThreadPoolCoreThreads(int core_threads)
public int getThreadPoolMaxThreads()
public void setThreadPoolMaxThreads(int max_threads)
public long getThreadPoolIdleTime()
public void setThreadPoolIdleTime(long idle_time)
public java.util.concurrent.Executor getThreadPool()
public void setThreadPool(java.util.concurrent.Executor thread_pool)
public java.util.Map<java.lang.String,java.lang.Object> getStats()
public void start() throws java.io.IOException, javax.management.MalformedObjectNameException, javax.management.MBeanRegistrationException
java.io.IOException
javax.management.MalformedObjectNameException
javax.management.MBeanRegistrationException
public void stop() throws java.io.IOException
java.io.IOException
public void run()
run
在接口中 java.lang.Runnable