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) booleanappend(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> CASResponsecas(String key, long casId, int exp, T value, Transcoder<T> tc) <T> CASResponsecas(String key, long casId, T value, Transcoder<T> tc) longlonglonglonglonglongflush()flush(int delay) <T> Tget(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()longlonglonglonglonglongGet 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) booleanbooleanreplace(String key, int exp, T o, Transcoder<T> tc) set(String key, int exp, T o, Transcoder<T> tc) voidshutdown()booleantouch(String key, int exp, Transcoder<T> tc) booleanwaitForQueues(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
-
refreshCertificate
boolean refreshCertificate() -
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.
-