public class MemcachedConnector extends Object implements Runnable
Modifier and Type | Class and Description |
---|---|
static class |
MemcachedConnector.Request |
Constructor and Description |
---|
MemcachedConnector(InetAddress bind_addr,
int port,
PartitionedHashMap<String,byte[]> cache) |
Modifier and Type | Method and Description |
---|---|
InetAddress |
getBindAddress() |
PartitionedHashMap<String,byte[]> |
getCache() |
int |
getPort() |
Map<String,Object> |
getStats() |
Executor |
getThreadPool() |
int |
getThreadPoolCoreThreads() |
long |
getThreadPoolIdleTime() |
int |
getThreadPoolMaxThreads() |
void |
run() |
void |
setBindAddress(InetAddress bind_addr) |
void |
setCache(PartitionedHashMap<String,byte[]> cache) |
void |
setPort(int port) |
void |
setThreadPool(Executor thread_pool) |
void |
setThreadPoolCoreThreads(int core_threads) |
void |
setThreadPoolIdleTime(long idle_time) |
void |
setThreadPoolMaxThreads(int max_threads) |
void |
start() |
void |
stop() |
public MemcachedConnector(InetAddress bind_addr, int port, PartitionedHashMap<String,byte[]> cache)
public InetAddress getBindAddress()
public void setBindAddress(InetAddress bind_addr)
public int getPort()
public void setPort(int port)
public PartitionedHashMap<String,byte[]> getCache()
public void setCache(PartitionedHashMap<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 Executor getThreadPool()
public void setThreadPool(Executor thread_pool)
public void start() throws IOException, MalformedObjectNameException, MBeanRegistrationException
public void stop() throws IOException
IOException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.