Package net.spy.memcached
Interface MemcachedClientIF
- All Known Implementing Classes:
MemcachedClient
public interface MemcachedClientIF
This interface is provided as a helper for testing clients of the
MemcachedClient.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionadd
(String key, int exp, T o, Transcoder<T> tc) boolean
append
(long cas, String key, T val, Transcoder<T> tc) append
(String key, T val, Transcoder<T> tc) asyncCAS
(String key, long casId, int exp, T value, Transcoder<T> tc) <T> Future
<CASResponse> asyncCAS
(String key, long casId, T value, Transcoder<T> tc) <T> Future
<T> asyncGet
(String key, Transcoder<T> tc) asyncGetAndTouch
(String key, int exp) asyncGetAndTouch
(String key, int exp, Transcoder<T> tc) asyncGetBulk
(String... keys) asyncGetBulk
(Collection<String> keys) <T> BulkFuture
<Map<String, T>> asyncGetBulk
(Collection<String> keys, Iterator<Transcoder<T>> tcs) <T> BulkFuture
<Map<String, T>> asyncGetBulk
(Collection<String> keys, Transcoder<T> tc) asyncGetBulk
(Iterator<String> keys) <T> BulkFuture
<Map<String, T>> asyncGetBulk
(Iterator<String> keys, Iterator<Transcoder<T>> tcs) <T> BulkFuture
<Map<String, T>> asyncGetBulk
(Iterator<String> keys, Transcoder<T> tc) <T> BulkFuture
<Map<String, T>> asyncGetBulk
(Transcoder<T> tc, String... keys) asyncGets
(String key, Transcoder<T> tc) broadcastOp
(BroadcastOpFactory of, Collection<MemcachedNode> nodes) <T> CASResponse
cas
(String key, long casId, int exp, T value, Transcoder<T> tc) <T> CASResponse
cas
(String key, long casId, T value, Transcoder<T> tc) long
long
long
long
long
long
flush()
flush
(int delay) <T> T
get
(String key, Transcoder<T> tc) getAndTouch
(String key, int exp) <T> CASValue
<T> getAndTouch
(String key, int exp, Transcoder<T> tc) getBulk
(Collection<String> keys) getBulk
(Collection<String> keys, Transcoder<T> tc) getBulk
(Iterator<String> keys, Transcoder<T> tc) getBulk
(Transcoder<T> tc, String... keys) <T> CASValue
<T> gets
(String key, Transcoder<T> tc) getStats()
long
long
long
long
long
long
Get the set of SASL mechanisms supported by the servers.prepend
(long cas, String key, T val, Transcoder<T> tc) prepend
(String key, T val, Transcoder<T> tc) boolean
replace
(String key, int exp, T o, Transcoder<T> tc) set
(String key, int exp, T o, Transcoder<T> tc) void
shutdown()
boolean
touch
(String key, int exp, Transcoder<T> tc) boolean
waitForQueues
(long timeout, TimeUnit unit)
-
Field Details
-
MAX_KEY_LENGTH
static final int MAX_KEY_LENGTHMaximum supported key length.- See Also:
-
-
Method Details
-
getAvailableServers
Collection<SocketAddress> getAvailableServers() -
getTranscoder
Transcoder<Object> getTranscoder() -
getNodeLocator
NodeLocator getNodeLocator() -
append
-
append
-
append
-
append
-
prepend
-
prepend
-
prepend
-
prepend
-
asyncCAS
-
asyncCAS
-
asyncCAS
-
asyncCAS
<T> OperationFuture<CASResponse> asyncCAS(String key, long casId, int exp, T value, Transcoder<T> tc) -
cas
-
cas
-
cas
-
cas
-
add
-
add
-
set
-
set
-
replace
-
replace
-
asyncGet
-
asyncGet
-
asyncGetAndTouch
-
asyncGetAndTouch
-
getAndTouch
-
getAndTouch
-
asyncGets
-
asyncGets
-
gets
-
gets
-
get
-
get
-
asyncGetBulk
-
asyncGetBulk
-
asyncGetBulk
-
asyncGetBulk
-
asyncGetBulk
-
asyncGetBulk
-
asyncGetBulk
-
asyncGetBulk
-
getBulk
-
getBulk
-
getBulk
-
getBulk
-
getBulk
-
getBulk
-
touch
-
touch
-
getVersions
Map<SocketAddress,String> getVersions() -
getStats
Map<SocketAddress,Map<String, getStats()String>> -
getStats
-
incr
-
incr
-
decr
-
decr
-
asyncIncr
-
asyncIncr
-
asyncDecr
-
asyncDecr
-
incr
-
incr
-
decr
-
decr
-
asyncIncr
-
asyncIncr
-
asyncDecr
-
asyncDecr
-
incr
-
incr
-
decr
-
decr
-
asyncIncr
-
asyncIncr
-
asyncDecr
-
asyncDecr
-
delete
-
delete
-
flush
-
flush
-
shutdown
void shutdown() -
shutdown
-
waitForQueues
-
addObserver
-
removeObserver
-
broadcastOp
-
broadcastOp
-
listSaslMechanisms
Get the set of SASL mechanisms supported by the servers.- Returns:
- the union of all SASL mechanisms supported by the servers.
-