public class MemcachedConnector
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Class and Description |
---|---|
static class |
MemcachedConnector.Request |
Constructor and Description |
---|
MemcachedConnector(java.net.InetAddress bind_addr,
int port,
PartitionedHashMap<java.lang.String,byte[]> cache) |
Modifier and Type | Method and Description |
---|---|
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
in interface java.lang.Runnable
Copyright © 1998-2020 Red Hat. All Rights Reserved.