|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectnet.rubyeye.xmemcached.XMemcachedClient
public class XMemcachedClient
Memcached Client for connecting to memcached server and do operations.
| 字段摘要 | |
|---|---|
protected CommandFactory |
commandFactory
|
protected int |
connectionPoolSize
|
protected MemcachedConnector |
connector
|
protected int |
maxQueuedNoReplyOperations
|
protected AtomicInteger |
serverOrderCount
|
protected MemcachedSessionLocator |
sessionLocator
|
| 构造方法摘要 | |
|---|---|
XMemcachedClient()
|
|
XMemcachedClient(InetSocketAddress inetSocketAddress)
|
|
XMemcachedClient(InetSocketAddress inetSocketAddress,
int weight)
XMemcached Constructor. |
|
XMemcachedClient(List<InetSocketAddress> addressList)
XMemcached Constructor.Every server's weight is one by default. |
|
XMemcachedClient(String server,
int port)
XMemcached constructor,default weight is 1 |
|
XMemcachedClient(String host,
int port,
int weight)
XMemcached constructor |
|
| 方法摘要 | ||
|---|---|---|
boolean |
add(String key,
int exp,
Object value)
|
|
boolean |
add(String key,
int exp,
Object value,
long timeout)
|
|
|
add(String key,
int exp,
T value,
Transcoder<T> transcoder)
|
|
|
add(String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout)
Add key-value item to memcached, success only when the key is not exists in memcached. |
|
void |
addOneServerWithWeight(String server,
int weight)
Add a memcached server |
|
void |
addServer(InetSocketAddress inetSocketAddress)
Add a memcached server,the thread call this method will be blocked until the connecting operations completed(success or fail) |
|
void |
addServer(InetSocketAddress inetSocketAddress,
int weight)
|
|
void |
addServer(String hostList)
Add memcached servers |
|
void |
addServer(String server,
int port)
Aadd a memcached server,the thread call this method will be blocked until the connecting operations completed(success or fail) |
|
void |
addServer(String server,
int port,
int weight)
add a memcached server to MemcachedClient |
|
void |
addStateListener(MemcachedClientStateListener listener)
Add a memcached client listener |
|
void |
addWithNoReply(String key,
int exp,
Object value)
Add key-value item to memcached, success only when the key is not exists in memcached.This method doesn't wait for reply. |
|
|
addWithNoReply(String key,
int exp,
T value,
Transcoder<T> transcoder)
|
|
boolean |
append(String key,
Object value)
|
|
boolean |
append(String key,
Object value,
long timeout)
Append value to key's data item,this method will wait for reply |
|
void |
appendWithNoReply(String key,
Object value)
Append value to key's data item,this method doesn't wait for reply. |
|
|
cas(String key,
CASOperation<T> operation)
|
|
|
cas(String key,
GetsResponse<T> getsReponse,
CASOperation<T> operation)
|
|
|
cas(String key,
int exp,
CASOperation<T> operation)
|
|
|
cas(String key,
int exp,
CASOperation<T> operation,
Transcoder<T> transcoder)
Cas is a check and set operation which means "store this data but only if no one else has updated since I last fetched it." |
|
|
cas(String key,
int exp,
GetsResponse<T> getsReponse,
CASOperation<T> operation)
|
|
|
cas(String key,
int exp,
GetsResponse<T> getsReponse,
CASOperation<T> operation,
Transcoder<T> transcoder)
cas is a check and set operation which means "store this data but only if no one else has updated since I last fetched it." |
|
boolean |
cas(String key,
int exp,
Object value,
long cas)
|
|
boolean |
cas(String key,
int exp,
Object value,
long timeout,
long cas)
|
|
|
cas(String key,
int exp,
T value,
Transcoder<T> transcoder,
long cas)
|
|
|
cas(String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout,
long cas)
Cas is a check and set operation which means "store this data but only if no one else has updated since I last fetched it." |
|
|
casWithNoReply(String key,
CASOperation<T> operation)
|
|
|
casWithNoReply(String key,
GetsResponse<T> getsResponse,
CASOperation<T> operation)
|
|
|
casWithNoReply(String key,
int exp,
CASOperation<T> operation)
|
|
|
casWithNoReply(String key,
int exp,
GetsResponse<T> getsReponse,
CASOperation<T> operation)
cas noreply |
|
protected void |
checkSocketAddress(InetSocketAddress address)
|
|
long |
decr(String key,
long delta)
"decr" are used to change data for some item in-place, decrementing it. |
|
long |
decr(String key,
long delta,
long initValue)
|
|
long |
decr(String key,
long delta,
long initValue,
long timeout)
"decr" are used to change data for some item in-place, decrementing it. |
|
long |
decr(String key,
long delta,
long initValue,
long timeout,
int exp)
"incr" are used to change data for some item in-place, incrementing it. |
|
void |
decrWithNoReply(String key,
long delta)
"decr" are used to change data for some item in-place, decrementing it. |
|
boolean |
delete(String key)
|
|
boolean |
delete(String key,
int time)
Delete key's data item from memcached.It it is not exists,return false. |
|
boolean |
delete(String key,
long opTimeout)
Delete key's date item from memcached |
|
void |
deleteWithNoReply(String key)
|
|
void |
deleteWithNoReply(String key,
int time)
Delete key's data item from memcached.This method doesn't wait for reply |
|
void |
flushAll()
Make All connected memcached's data item invalid |
|
void |
flushAll(InetSocketAddress address)
Invalidate all existing items immediately |
|
void |
flushAll(InetSocketAddress address,
long timeout)
|
|
void |
flushAll(InetSocketAddress address,
long timeout,
int exptime)
|
|
void |
flushAll(int exptime,
long timeout)
|
|
void |
flushAll(long timeout)
Make All connected memcached's data item invalid |
|
void |
flushAll(String host)
This method is deprecated,please use flushAll(InetSocketAddress) instead. |
|
void |
flushAllWithNoReply()
|
|
void |
flushAllWithNoReply(InetSocketAddress address)
|
|
void |
flushAllWithNoReply(InetSocketAddress address,
int exptime)
|
|
void |
flushAllWithNoReply(int exptime)
|
|
|
get(Collection<String> keyCollections)
|
|
|
get(Collection<String> keyCollections,
long timeout)
|
|
|
get(Collection<String> keyCollections,
long timeout,
Transcoder<T> transcoder)
Bulk get items |
|
|
get(Collection<String> keyCollections,
Transcoder<T> transcoder)
|
|
|
get(String key)
|
|
|
get(String key,
long timeout)
|
|
|
get(String key,
long timeout,
Transcoder<T> transcoder)
Get value by key |
|
|
get(String key,
Transcoder<T> transcoder)
|
|
|
getAndTouch(String key,
int newExp)
Get item and set a new expiration time for it,using default opTimeout |
|
|
getAndTouch(String key,
int newExp,
long opTimeout)
Get item and set a new expiration time for it |
|
Map<InetSocketAddress,AuthInfo> |
getAuthInfoMap()
return current all auth info |
|
Collection<InetSocketAddress> |
getAvailableServers()
Returns available memcached servers list. |
|
Collection<InetSocketAddress> |
getAvaliableServers()
已过时。 |
|
CommandFactory |
getCommandFactory()
|
|
int |
getConnectionSizeBySocketAddress(InetSocketAddress address)
|
|
Connector |
getConnector()
return the session manager |
|
long |
getConnectTimeout()
Get the connect timeout |
|
Counter |
getCounter(String key)
Get counter for key,and if the key's value is not set,then set it with 0. |
|
Counter |
getCounter(String key,
long initialValue)
Get counter for key,and if the key's value is not set,then set it with initial value. |
|
long |
getHealSessionInterval()
Return the default heal session interval in milliseconds |
|
KeyIterator |
getKeyIterator(InetSocketAddress address)
已过时。 memcached 1.6.x will remove cachedump stats command,so this method will be removed in the future |
|
KeyProvider |
getKeyProvider()
|
|
String |
getName()
Return the cache instance name |
|
long |
getOpTimeout()
get operation timeout setting |
|
Protocol |
getProtocol()
|
|
Queue<ReconnectRequest> |
getReconnectRequestQueue()
Returns reconnecting task queue,the queue is thread-safe and 'weakly consistent',but maybe you should not modify it at all. |
|
|
gets(Collection<String> keyCollections)
|
|
|
gets(Collection<String> keyCollections,
long timeout)
|
|
|
gets(Collection<String> keyCollections,
long timeout,
Transcoder<T> transcoder)
Bulk gets items |
|
|
gets(Collection<String> keyCollections,
Transcoder<T> transcoder)
|
|
|
gets(String key)
|
|
|
gets(String key,
long timeout)
|
|
|
gets(String key,
long timeout,
Transcoder<T> transcoder)
Just like get,But it return a GetsResponse,include cas value for cas update. |
|
|
gets(String key,
Transcoder transcoder)
|
|
List<String> |
getServersDescription()
Get all connected memcached servers |
|
MemcachedSessionLocator |
getSessionLocator()
|
|
Collection<MemcachedClientStateListener> |
getStateListeners()
Get all current state listeners |
|
Map<InetSocketAddress,Map<String,String>> |
getStats()
|
|
Map<InetSocketAddress,Map<String,String>> |
getStats(long timeout)
Get stats from all memcached servers |
|
Map<InetSocketAddress,Map<String,String>> |
getStatsByItem(String itemName)
Get special item stats. |
|
Map<InetSocketAddress,Map<String,String>> |
getStatsByItem(String itemName,
long timeout)
|
|
int |
getTimeoutExceptionThreshold()
Returns maximum number of timeout exception for closing connection. |
|
Transcoder |
getTranscoder()
return default transcoder,default is SerializingTranscoder |
|
Map<InetSocketAddress,String> |
getVersions()
Get all connected memcached servers's version. |
|
Map<InetSocketAddress,String> |
getVersions(long timeout)
|
|
long |
incr(String key,
long delta)
"incr" are used to change data for some item in-place, incrementing it. |
|
long |
incr(String key,
long delta,
long initValue)
|
|
long |
incr(String key,
long delta,
long initValue,
long timeout)
"incr" are used to change data for some item in-place, incrementing it. |
|
long |
incr(String key,
long delta,
long initValue,
long timeout,
int exp)
"incr" are used to change data for some item in-place, incrementing it. |
|
void |
incrWithNoReply(String key,
long delta)
"incr" are used to change data for some item in-place, incrementing it. |
|
boolean |
isFailureMode()
Returns if client is in failure mode. |
|
boolean |
isSanitizeKeys()
|
|
boolean |
isShutdown()
|
|
protected MemcachedConnector |
newConnector(BufferAllocator bufferAllocator,
Configuration configuration,
MemcachedSessionLocator memcachedSessionLocator,
CommandFactory commandFactory,
int poolSize,
int maxQueuedNoReplyOperations)
|
|
protected InetSocketAddress |
newSocketAddress(String server,
int port)
|
|
boolean |
prepend(String key,
Object value)
|
|
boolean |
prepend(String key,
Object value,
long timeout)
Prepend value to key's data item in memcached.This method doesn't wait for reply. |
|
void |
prependWithNoReply(String key,
Object value)
Prepend value to key's data item in memcached.This method doesn't wait for reply. |
|
void |
removeServer(String hostList)
Remove memcached servers |
|
void |
removeStateListener(MemcachedClientStateListener listener)
Remove a memcached client listener |
|
boolean |
replace(String key,
int exp,
Object value)
|
|
boolean |
replace(String key,
int exp,
Object value,
long timeout)
|
|
|
replace(String key,
int exp,
T value,
Transcoder<T> transcoder)
|
|
|
replace(String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout)
Replace the key's data item in memcached,success only when the key's data item is exists in memcached.This method will wait for reply from server. |
|
void |
replaceWithNoReply(String key,
int exp,
Object value)
Replace the key's data item in memcached,success only when the key's data item is exists in memcached.This method doesn't wait for reply from server. |
|
|
replaceWithNoReply(String key,
int exp,
T value,
Transcoder<T> transcoder)
|
|
boolean |
set(String key,
int exp,
Object value)
|
|
boolean |
set(String key,
int exp,
Object value,
long timeout)
|
|
|
set(String key,
int exp,
T value,
Transcoder<T> transcoder)
|
|
|
set(String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout)
Store key-value item to memcached |
|
void |
setAuthInfoMap(Map<InetSocketAddress,AuthInfo> map)
Configure auth info |
|
void |
setBufferAllocator(BufferAllocator bufferAllocator)
Set the nio's ByteBuffer Allocator,use SimpleBufferAllocator by default. |
|
void |
setConnectionPoolSize(int poolSize)
In a high concurrent enviroment,you may want to pool memcached clients.But a xmemcached client has to start a reactor thread and some thread pools,if you create too many clients,the cost is very large. |
|
void |
setConnectTimeout(long connectTimeout)
Set the connect timeout,default is 1 minutes |
|
void |
setEnableHealSession(boolean enableHealSession)
If the memcached dump or network error cause connection closed,xmemcached would try to heal the connection.You can disable this behaviour by using this method: client.setEnableHealSession(false); The default value is true. |
|
void |
setEnableHeartBeat(boolean enableHeartBeat)
Whether to enable heart beat |
|
void |
setFailureMode(boolean failureMode)
Configure wheather to set client in failure mode.If set it to true,that means you want to configure client in failure mode. |
|
void |
setHealSessionInterval(long healConnectionInterval)
If the memcached dump or network error cause connection closed,xmemcached would try to heal the connection.The interval between reconnections is 2 seconds by default. |
|
void |
setKeyProvider(KeyProvider keyProvider)
Set a key provider for pre-processing keys before sending them to memcached. |
|
void |
setLoggingLevelVerbosity(InetSocketAddress address,
int level)
Set the verbosity level of the memcached's logging output.This method will wait for reply. |
|
void |
setLoggingLevelVerbosityWithNoReply(InetSocketAddress address,
int level)
Set the verbosity level of the memcached's logging output.This method doesn't wait for reply from server |
|
void |
setMergeFactor(int mergeFactor)
Set the merge factor,this factor determins how many 'get' commands would be merge to one multi-get command.default is 150 |
|
void |
setName(String name)
Set cache instance name |
|
void |
setOpTimeout(long opTimeout)
set operation timeout,default is one second. |
|
void |
setOptimizeGet(boolean optimizeGet)
Enable/Disable merge many get commands to one multi-get command.true is to enable it,false is to disable it.Default is true.Recommend users to enable it. |
|
void |
setOptimizeMergeBuffer(boolean optimizeMergeBuffer)
Enable/Disable merge many command's buffers to one big buffer fit socket's send buffer size.Default is true.Recommend true. |
|
void |
setPrimitiveAsString(boolean primitiveAsString)
Store all primitive type as string,defualt is false. |
|
void |
setSanitizeKeys(boolean sanitizeKeys)
Enables/disables sanitizing keys by URLEncoding. |
|
void |
setServerWeight(String server,
int weight)
Set a memcached server's weight |
|
void |
setTimeoutExceptionThreshold(int timeoutExceptionThreshold)
Set maximum number of timeout exception for closing connection.You can set it to be a large value to disable this feature. |
|
void |
setTranscoder(Transcoder transcoder)
set transcoder |
|
void |
setWithNoReply(String key,
int exp,
Object value)
Store key-value item to memcached,doesn't wait for reply |
|
|
setWithNoReply(String key,
int exp,
T value,
Transcoder<T> transcoder)
|
|
void |
shutdown()
|
|
Map<String,String> |
stats(InetSocketAddress address)
|
|
Map<String,String> |
stats(InetSocketAddress address,
long timeout)
�ョ��瑰������emcached server缁��淇℃� |
|
boolean |
touch(String key,
int exp)
Set a new expiration time for an existing item,using default opTimeout second. |
|
boolean |
touch(String key,
int exp,
long opTimeout)
Set a new expiration time for an existing item |
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected MemcachedSessionLocator sessionLocator
protected MemcachedConnector connector
protected CommandFactory commandFactory
protected int connectionPoolSize
protected int maxQueuedNoReplyOperations
protected final AtomicInteger serverOrderCount
| 构造方法详细信息 |
|---|
public XMemcachedClient(String server,
int port)
throws IOException
server - �����Pport - ����ㄧ���
IOException
public XMemcachedClient(String host,
int port,
int weight)
throws IOException
host - server hostport - server portweight - server weight
IOException
public XMemcachedClient(InetSocketAddress inetSocketAddress,
int weight)
throws IOException
inetSocketAddress - weight -
IOException
public XMemcachedClient(InetSocketAddress inetSocketAddress)
throws IOException
IOException
public XMemcachedClient()
throws IOException
IOException
public XMemcachedClient(List<InetSocketAddress> addressList)
throws IOException
addressList -
IOException| 方法详细信息 |
|---|
public final void setMergeFactor(int mergeFactor)
MemcachedClient 复制的描述
MemcachedClient 中的 setMergeFactorpublic int getTimeoutExceptionThreshold()
MemcachedClient 复制的描述
MemcachedClient 中的 getTimeoutExceptionThresholdpublic void setTimeoutExceptionThreshold(int timeoutExceptionThreshold)
MemcachedClient 复制的描述
MemcachedClient 中的 setTimeoutExceptionThresholdMemcachedClient.DEFAULT_MAX_TIMEOUTEXCEPTION_THRESHOLDpublic KeyProvider getKeyProvider()
public void setKeyProvider(KeyProvider keyProvider)
MemcachedClient 复制的描述
MemcachedClient 中的 setKeyProviderpublic final MemcachedSessionLocator getSessionLocator()
public final CommandFactory getCommandFactory()
public String getName()
XMemcachedClientMBean 复制的描述
MemcachedClient 中的 getNameXMemcachedClientMBean 中的 getNamepublic void setName(String name)
MemcachedClient 复制的描述
MemcachedClient 中的 setNamepublic long getConnectTimeout()
MemcachedClient 复制的描述
MemcachedClient 中的 getConnectTimeoutpublic void setConnectTimeout(long connectTimeout)
MemcachedClient 复制的描述
MemcachedClient 中的 setConnectTimeoutpublic void setEnableHeartBeat(boolean enableHeartBeat)
MemcachedClient 复制的描述
MemcachedClient 中的 setEnableHeartBeatenableHeartBeat - if true,then enable heartbeat,true by defaultpublic final long getOpTimeout()
MemcachedClient 中的 getOpTimeoutpublic final void setOpTimeout(long opTimeout)
MemcachedClient 中的 setOpTimeoutopTimeout - public void setHealSessionInterval(long healConnectionInterval)
MemcachedClient 复制的描述
MemcachedClient 中的 setHealSessionIntervalhealConnectionInterval - MILLISECONDSpublic long getHealSessionInterval()
MemcachedClient 复制的描述
MemcachedClient 中的 getHealSessionIntervalpublic Map<InetSocketAddress,AuthInfo> getAuthInfoMap()
MemcachedClient 复制的描述
MemcachedClient 中的 getAuthInfoMappublic void setAuthInfoMap(Map<InetSocketAddress,AuthInfo> map)
MemcachedClient 复制的描述
MemcachedClient 中的 setAuthInfoMapmap - Auth info map,key is memcached server address,and value is the
auth info for the key.public final Connector getConnector()
MemcachedClient 复制的描述
MemcachedClient 中的 getConnectorpublic final void setOptimizeMergeBuffer(boolean optimizeMergeBuffer)
MemcachedClient 复制的描述
MemcachedClient 中的 setOptimizeMergeBufferpublic final boolean isShutdown()
MemcachedClient 中的 isShutdown
protected InetSocketAddress newSocketAddress(String server,
int port)
public final void addServer(String server,
int port)
throws IOException
MemcachedClient 复制的描述
MemcachedClient 中的 addServerserver - host stringport - port number
IOException
public final void addServer(String server,
int port,
int weight)
throws IOException
MemcachedClient 中的 addServerserver - port - weight -
IOException
public final void addServer(InetSocketAddress inetSocketAddress)
throws IOException
MemcachedClient 复制的描述
MemcachedClient 中的 addServerinetSocketAddress - memcached server's socket address
IOException
public final void addServer(InetSocketAddress inetSocketAddress,
int weight)
throws IOException
MemcachedClient 中的 addServerIOException
public final void addServer(String hostList)
throws IOException
XMemcachedClientMBean 复制的描述
MemcachedClient 中的 addServerXMemcachedClientMBean 中的 addServerIOException
public void addOneServerWithWeight(String server,
int weight)
throws IOException
XMemcachedClientMBean 复制的描述
XMemcachedClientMBean 中的 addOneServerWithWeightserver - a String in the form of "[host1]:[port1],[host2]:[port2]"weight - server's weight
IOExceptionpublic final List<String> getServersDescription()
XMemcachedClientMBean 复制的描述
MemcachedClient 中的 getServersDescriptionXMemcachedClientMBean 中的 getServersDescription
public final void setServerWeight(String server,
int weight)
XMemcachedClientMBean 复制的描述
XMemcachedClientMBean 中的 setServerWeightpublic final void removeServer(String hostList)
XMemcachedClientMBean 复制的描述
MemcachedClient 中的 removeServerXMemcachedClientMBean 中的 removeServerprotected void checkSocketAddress(InetSocketAddress address)
protected MemcachedConnector newConnector(BufferAllocator bufferAllocator,
Configuration configuration,
MemcachedSessionLocator memcachedSessionLocator,
CommandFactory commandFactory,
int poolSize,
int maxQueuedNoReplyOperations)
public void setOptimizeGet(boolean optimizeGet)
MemcachedClient 复制的描述
MemcachedClient 中的 setOptimizeGetpublic final void setBufferAllocator(BufferAllocator bufferAllocator)
MemcachedClient 复制的描述
MemcachedClient 中的 setBufferAllocator
public final <T> T get(String key,
long timeout,
Transcoder<T> transcoder)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 getkey - Keytimeout - Operation timeout,if the method is not returned in this
time,throw TimeoutExceptiontranscoder - The value's transcoder
TimeoutException
InterruptedException
MemcachedException
public final <T> T get(String key,
long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 getTimeoutException
InterruptedException
MemcachedException
public final <T> T get(String key,
Transcoder<T> transcoder)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 getTimeoutException
InterruptedException
MemcachedException
public final <T> T get(String key)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 getTimeoutException
InterruptedException
MemcachedException
public final <T> GetsResponse<T> gets(String key,
long timeout,
Transcoder<T> transcoder)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 getskey - keytimeout - operation timeout
TimeoutException
InterruptedException
MemcachedException
public final <T> GetsResponse<T> gets(String key)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 getsTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.gets(String, long, Transcoder)
public final <T> GetsResponse<T> gets(String key,
long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 getsTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.gets(String, long, Transcoder)
public final <T> GetsResponse<T> gets(String key,
Transcoder transcoder)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 getsTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.gets(String, long, Transcoder)
public final <T> Map<String,T> get(Collection<String> keyCollections,
long timeout,
Transcoder<T> transcoder)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 getkeyCollections - key collectiontimeout - opTimeouttranscoder - Value transcoder
TimeoutException
InterruptedException
MemcachedException
public final <T> Map<String,T> get(Collection<String> keyCollections,
Transcoder<T> transcoder)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 getTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.get(Collection, long, Transcoder)
public final <T> Map<String,T> get(Collection<String> keyCollections)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 getTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.get(Collection, long, Transcoder)
public final <T> Map<String,T> get(Collection<String> keyCollections,
long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 getTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.get(Collection, long, Transcoder)
public final <T> Map<String,GetsResponse<T>> gets(Collection<String> keyCollections,
long timeout,
Transcoder<T> transcoder)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 getskeyCollections - key collectiontimeout - Operation timeouttranscoder - Value transcoder
TimeoutException
InterruptedException
MemcachedExceptionGetsResponse
public final <T> Map<String,GetsResponse<T>> gets(Collection<String> keyCollections)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 getsTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.gets(Collection, long, Transcoder)
public final <T> Map<String,GetsResponse<T>> gets(Collection<String> keyCollections,
long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 getsTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.gets(Collection, long, Transcoder)
public final <T> Map<String,GetsResponse<T>> gets(Collection<String> keyCollections,
Transcoder<T> transcoder)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 getsTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.gets(Collection, long, Transcoder)
public final <T> boolean set(String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 setkey - stored keyexp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.value - stored datatranscoder - transocdertimeout - operation timeout,in milliseconds
TimeoutException
InterruptedException
MemcachedException
public void setWithNoReply(String key,
int exp,
Object value)
throws InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 setWithNoReplykey - stored keyexp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.value - stored data
InterruptedException
MemcachedException
public <T> void setWithNoReply(String key,
int exp,
T value,
Transcoder<T> transcoder)
throws InterruptedException,
MemcachedException
MemcachedClient 中的 setWithNoReplyInterruptedException
MemcachedExceptionMemcachedClient.setWithNoReply(String, int, Object, Transcoder)
public final boolean set(String key,
int exp,
Object value)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 setTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.set(String, int, Object, Transcoder, long)
public final boolean set(String key,
int exp,
Object value,
long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 setTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.set(String, int, Object, Transcoder, long)
public final <T> boolean set(String key,
int exp,
T value,
Transcoder<T> transcoder)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 setTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.set(String, int, Object, Transcoder, long)
public final <T> boolean add(String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 addexp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.
TimeoutException
InterruptedException
MemcachedException
public final boolean add(String key,
int exp,
Object value)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 addTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.add(String, int, Object, Transcoder, long)
public final boolean add(String key,
int exp,
Object value,
long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 addTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.add(String, int, Object, Transcoder, long)
public final <T> boolean add(String key,
int exp,
T value,
Transcoder<T> transcoder)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 addTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.add(String, int, Object, Transcoder, long)
public void addWithNoReply(String key,
int exp,
Object value)
throws InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 addWithNoReplyexp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.
InterruptedException
MemcachedException
public <T> void addWithNoReply(String key,
int exp,
T value,
Transcoder<T> transcoder)
throws InterruptedException,
MemcachedException
MemcachedClient 中的 addWithNoReplyInterruptedException
MemcachedExceptionMemcachedClient.addWithNoReply(String, int, Object, Transcoder)
public void replaceWithNoReply(String key,
int exp,
Object value)
throws InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 replaceWithNoReplyexp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.
InterruptedException
MemcachedException
public <T> void replaceWithNoReply(String key,
int exp,
T value,
Transcoder<T> transcoder)
throws InterruptedException,
MemcachedException
MemcachedClient 中的 replaceWithNoReplyInterruptedException
MemcachedExceptionMemcachedClient.replaceWithNoReply(String, int, Object, Transcoder)
public final <T> boolean replace(String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 replaceexp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.
TimeoutException
InterruptedException
MemcachedException
public final boolean replace(String key,
int exp,
Object value)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 replaceTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.replace(String, int, Object, Transcoder, long)
public final boolean replace(String key,
int exp,
Object value,
long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 replaceTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.replace(String, int, Object, Transcoder, long)
public final <T> boolean replace(String key,
int exp,
T value,
Transcoder<T> transcoder)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 replaceTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.replace(String, int, Object, Transcoder, long)
public final boolean append(String key,
Object value)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 appendTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.append(String, Object, long)
public final boolean append(String key,
Object value,
long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 appendTimeoutException
InterruptedException
MemcachedException
public void appendWithNoReply(String key,
Object value)
throws InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 appendWithNoReplyInterruptedException
MemcachedException
public final boolean prepend(String key,
Object value)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 prependTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.prepend(String, Object, long)
public final boolean prepend(String key,
Object value,
long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 prependTimeoutException
InterruptedException
MemcachedException
public void prependWithNoReply(String key,
Object value)
throws InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 prependWithNoReplyInterruptedException
MemcachedException
public final boolean cas(String key,
int exp,
Object value,
long cas)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 casTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.cas(String, int, Object, Transcoder, long, long)
public final <T> boolean cas(String key,
int exp,
T value,
Transcoder<T> transcoder,
long timeout,
long cas)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 casexp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.
TimeoutException
InterruptedException
MemcachedException
public final boolean cas(String key,
int exp,
Object value,
long timeout,
long cas)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 casTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.cas(String, int, Object, Transcoder, long, long)
public final <T> boolean cas(String key,
int exp,
T value,
Transcoder<T> transcoder,
long cas)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 casTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.cas(String, int, Object, Transcoder, long, long)
public final <T> boolean cas(String key,
int exp,
CASOperation<T> operation,
Transcoder<T> transcoder)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 casexp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.operation - CASOperationtranscoder - object transcoder
TimeoutException
InterruptedException
MemcachedException
public final <T> boolean cas(String key,
int exp,
GetsResponse<T> getsReponse,
CASOperation<T> operation,
Transcoder<T> transcoder)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 casexp - An expiration time, in seconds. Can be up to 30 days. After 30
days, is treated as a unix timestamp of an exact date.getsReponse - gets method's resultoperation - CASOperation
TimeoutException
InterruptedException
MemcachedException
public final <T> boolean cas(String key,
int exp,
GetsResponse<T> getsReponse,
CASOperation<T> operation)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 casTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.cas(String, int, GetsResponse, CASOperation, Transcoder)
public <T> void casWithNoReply(String key,
CASOperation<T> operation)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 casWithNoReplyTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.casWithNoReply(String, int, GetsResponse, CASOperation)
public <T> void casWithNoReply(String key,
GetsResponse<T> getsResponse,
CASOperation<T> operation)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 casWithNoReplyTimeoutException
InterruptedException
MemcachedException
public <T> void casWithNoReply(String key,
int exp,
CASOperation<T> operation)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 casWithNoReplyTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.casWithNoReply(String, int, GetsResponse, CASOperation)
public <T> void casWithNoReply(String key,
int exp,
GetsResponse<T> getsReponse,
CASOperation<T> operation)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 casWithNoReplyTimeoutException
InterruptedException
MemcachedException
public final <T> boolean cas(String key,
GetsResponse<T> getsReponse,
CASOperation<T> operation)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 casTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.cas(String, int, GetsResponse, CASOperation, Transcoder)
public final <T> boolean cas(String key,
int exp,
CASOperation<T> operation)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 casTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.cas(String, int, GetsResponse, CASOperation, Transcoder)
public final <T> boolean cas(String key,
CASOperation<T> operation)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 casTimeoutException
InterruptedException
MemcachedExceptionMemcachedClient.cas(String, int, GetsResponse, CASOperation, Transcoder)
public final boolean delete(String key,
int time)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 deleteInterruptedException
MemcachedException
TimeoutException
public boolean delete(String key,
long opTimeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 deleteopTimeout - Operation timeout
TimeoutException
InterruptedException
MemcachedException
public final void deleteWithNoReply(String key,
int time)
throws InterruptedException,
MemcachedException
MemcachedClient 中的 deleteWithNoReplykey - time -
InterruptedException
MemcachedException
public final void deleteWithNoReply(String key)
throws InterruptedException,
MemcachedException
MemcachedClient 中的 deleteWithNoReplyInterruptedException
MemcachedException
public boolean touch(String key,
int exp,
long opTimeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 touchkey - item's keyexp - New expiration time, in seconds. Can be up to 30 days. After
30 days, is treated as a unix timestamp of an exact date.opTimeout - operation timeout
TimeoutException
InterruptedException
MemcachedException
public boolean touch(String key,
int exp)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 touchkey - item's keyexp - New expiration time, in seconds. Can be up to 30 days. After
30 days, is treated as a unix timestamp of an exact date.
TimeoutException
InterruptedException
MemcachedException
public <T> T getAndTouch(String key,
int newExp,
long opTimeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 getAndTouchkey - item's keynewExp - New expiration time, in seconds. Can be up to 30 days. After
30 days, is treated as a unix timestamp of an exact date.opTimeout - operation timeout
TimeoutException
InterruptedException
MemcachedException
public <T> T getAndTouch(String key,
int newExp)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 getAndTouchTimeoutException
InterruptedException
MemcachedException
public final long incr(String key,
long delta)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 incrInterruptedException
MemcachedException
TimeoutException
public long incr(String key,
long delta,
long initValue)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 incrTimeoutException
InterruptedException
MemcachedException
public long incr(String key,
long delta,
long initValue,
long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 incrkey - keyinitValue - initValue if the data is not exists.timeout - operation timeout
TimeoutException
InterruptedException
MemcachedException
public long incr(String key,
long delta,
long initValue,
long timeout,
int exp)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 incrkey - keydelta - increment deltainitValue - the initial value to be added when value is not foundtimeout - operation timeoutexp - the initial vlaue expire time, in seconds. Can be up to 30
days. After 30 days, is treated as a unix timestamp of an
exact date.
TimeoutException
InterruptedException
MemcachedException
public final void incrWithNoReply(String key,
long delta)
throws InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 incrWithNoReplyInterruptedException
MemcachedException
public final void decrWithNoReply(String key,
long delta)
throws InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 decrWithNoReplyInterruptedException
MemcachedException
public final long decr(String key,
long delta)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 decrInterruptedException
MemcachedException
TimeoutException
public long decr(String key,
long delta,
long initValue)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 decrTimeoutException
InterruptedException
MemcachedExceptiondecr
public long decr(String key,
long delta,
long initValue,
long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 decrkey - The keyinitValue - The initial value if the data is not exists.timeout - Operation timeout
TimeoutException
InterruptedException
MemcachedException
public long decr(String key,
long delta,
long initValue,
long timeout,
int exp)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 decrinitValue - the initial value to be added when value is not foundexp - the initial vlaue expire time, in seconds. Can be up to 30
days. After 30 days, is treated as a unix timestamp of an
exact date.
TimeoutException
InterruptedException
MemcachedException
public final void flushAll()
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 flushAllTimeoutException
InterruptedException
MemcachedException
public void flushAllWithNoReply()
throws InterruptedException,
MemcachedException
MemcachedClient 中的 flushAllWithNoReplyInterruptedException
MemcachedException
public void flushAllWithNoReply(int exptime)
throws InterruptedException,
MemcachedException
MemcachedClient 中的 flushAllWithNoReplyInterruptedException
MemcachedException
public void flushAllWithNoReply(InetSocketAddress address)
throws MemcachedException,
InterruptedException
MemcachedClient 中的 flushAllWithNoReplyMemcachedException
InterruptedException
public void flushAllWithNoReply(InetSocketAddress address,
int exptime)
throws MemcachedException,
InterruptedException
MemcachedClient 中的 flushAllWithNoReplyMemcachedException
InterruptedException
public final void flushAll(int exptime,
long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 flushAllTimeoutException
InterruptedException
MemcachedException
public final void flushAll(long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 flushAlltimeout - operation timeout
TimeoutException
InterruptedException
MemcachedException
public void setLoggingLevelVerbosity(InetSocketAddress address,
int level)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 setLoggingLevelVerbositylevel - logging level
TimeoutException
InterruptedException
MemcachedException
public void setLoggingLevelVerbosityWithNoReply(InetSocketAddress address,
int level)
throws InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 setLoggingLevelVerbosityWithNoReplyaddress - memcached server addresslevel - logging level
InterruptedException
MemcachedException
public final void flushAll(InetSocketAddress address)
throws MemcachedException,
InterruptedException,
TimeoutException
MemcachedClient 复制的描述
MemcachedClient 中的 flushAlladdress - Target memcached server
MemcachedException
InterruptedException
TimeoutException
public final void flushAll(InetSocketAddress address,
long timeout)
throws MemcachedException,
InterruptedException,
TimeoutException
MemcachedClient 中的 flushAllMemcachedException
InterruptedException
TimeoutException
public final void flushAll(InetSocketAddress address,
long timeout,
int exptime)
throws MemcachedException,
InterruptedException,
TimeoutException
MemcachedClient 中的 flushAllMemcachedException
InterruptedException
TimeoutException
public final void flushAll(String host)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 flushAllTimeoutException
InterruptedException
MemcachedException
public final Map<String,String> stats(InetSocketAddress address)
throws MemcachedException,
InterruptedException,
TimeoutException
MemcachedClient 中的 statsMemcachedException
InterruptedException
TimeoutException
public final Map<String,String> stats(InetSocketAddress address,
long timeout)
throws MemcachedException,
InterruptedException,
TimeoutException
MemcachedClient 复制的描述
MemcachedClient 中的 statsaddress - ����板�timeout - ���瓒��
MemcachedException
InterruptedException
TimeoutException
public final Map<InetSocketAddress,Map<String,String>> getStats()
throws MemcachedException,
InterruptedException,
TimeoutException
MemcachedClient 中的 getStatsMemcachedException
InterruptedException
TimeoutException
public final Map<InetSocketAddress,Map<String,String>> getStatsByItem(String itemName)
throws MemcachedException,
InterruptedException,
TimeoutException
MemcachedClient 复制的描述
MemcachedClient 中的 getStatsByItemMemcachedException
InterruptedException
TimeoutException
public final Map<InetSocketAddress,Map<String,String>> getStatsByItem(String itemName,
long timeout)
throws MemcachedException,
InterruptedException,
TimeoutException
MemcachedClient 中的 getStatsByItemMemcachedException
InterruptedException
TimeoutException
public final Map<InetSocketAddress,String> getVersions()
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 复制的描述
MemcachedClient 中的 getVersionsTimeoutException
InterruptedException
MemcachedException
public final Map<InetSocketAddress,String> getVersions(long timeout)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 getVersionsTimeoutException
InterruptedException
MemcachedException
public Map<InetSocketAddress,Map<String,String>> getStats(long timeout)
throws MemcachedException,
InterruptedException,
TimeoutException
MemcachedClient 复制的描述
MemcachedClient 中的 getStatsMemcachedException
InterruptedException
TimeoutException
public final void shutdown()
throws IOException
MemcachedClient 中的 shutdownIOExceptionpublic void setConnectionPoolSize(int poolSize)
MemcachedClient 复制的描述
MemcachedClient 中的 setConnectionPoolSizepoolSize - pool size,default is one,every memcached has only one
connection.
public final boolean delete(String key)
throws TimeoutException,
InterruptedException,
MemcachedException
MemcachedClient 中的 deleteTimeoutException
InterruptedException
MemcachedExceptionpublic final Transcoder getTranscoder()
MemcachedClient 复制的描述
MemcachedClient 中的 getTranscoderpublic final void setTranscoder(Transcoder transcoder)
MemcachedClient 复制的描述
MemcachedClient 中的 setTranscoderpublic final Collection<InetSocketAddress> getAvaliableServers()
MemcachedClient 中的 getAvaliableServersMemcachedClient.getAvailableServers()public Collection<InetSocketAddress> getAvailableServers()
MemcachedClient 复制的描述
MemcachedClient 中的 getAvailableServerspublic final int getConnectionSizeBySocketAddress(InetSocketAddress address)
public void addStateListener(MemcachedClientStateListener listener)
MemcachedClient 复制的描述
MemcachedClient 中的 addStateListenerpublic Collection<MemcachedClientStateListener> getStateListeners()
MemcachedClient 复制的描述
MemcachedClient 中的 getStateListenerspublic void setPrimitiveAsString(boolean primitiveAsString)
MemcachedClient 复制的描述
MemcachedClient 中的 setPrimitiveAsStringpublic void removeStateListener(MemcachedClientStateListener listener)
MemcachedClient 复制的描述
MemcachedClient 中的 removeStateListenerpublic Protocol getProtocol()
MemcachedClient 中的 getProtocolpublic boolean isSanitizeKeys()
MemcachedClient 中的 isSanitizeKeyspublic void setSanitizeKeys(boolean sanitizeKeys)
MemcachedClient 复制的描述
MemcachedClient 中的 setSanitizeKeyssanitizeKeys - if true, then URLEncode all keys
public Counter getCounter(String key,
long initialValue)
MemcachedClient 复制的描述
MemcachedClient 中的 getCounterpublic Counter getCounter(String key)
MemcachedClient 复制的描述
MemcachedClient 中的 getCounter
public KeyIterator getKeyIterator(InetSocketAddress address)
throws MemcachedException,
TimeoutException,
InterruptedException
MemcachedClient 复制的描述
MemcachedClient 中的 getKeyIteratorMemcachedException
TimeoutException
InterruptedExceptionpublic void setEnableHealSession(boolean enableHealSession)
MemcachedClient 复制的描述 client.setEnableHealSession(false);
MemcachedClient 中的 setEnableHealSessionpublic void setFailureMode(boolean failureMode)
MemcachedClient 复制的描述
MemcachedClient 中的 setFailureModefailureMode - true is to configure client in failure mode.public boolean isFailureMode()
MemcachedClient 复制的描述
MemcachedClient 中的 isFailureModepublic Queue<ReconnectRequest> getReconnectRequestQueue()
MemcachedClient 复制的描述
MemcachedClient 中的 getReconnectRequestQueue
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||