A B C D E F G H I K L M N O P R S T U V W

A

AbstractLogger - Class in net.spy.memcached.compat.log
Abstract implementation of Logger providing most of the common framework.
AbstractLogger(String) - Constructor for class net.spy.memcached.compat.log.AbstractLogger
Instantiate the abstract logger.
add(String, int, T, Transcoder<T>) - Method in class net.spy.memcached.MemcachedClient
Add an object to the cache iff it does not exist already.
add(String, int, Object) - Method in class net.spy.memcached.MemcachedClient
Add an object to the cache (using the default transcoder) iff it does not exist already.
add(String, int, T, Transcoder<T>) - Method in interface net.spy.memcached.MemcachedClientIF
 
add(String, int, Object) - Method in interface net.spy.memcached.MemcachedClientIF
 
addCallbacks(GetOperation) - Method in class net.spy.memcached.protocol.ProxyCallback
 
addObserver(ConnectionObserver) - Method in class net.spy.memcached.MemcachedClient
Add a connection observer.
addObserver(ConnectionObserver) - Method in interface net.spy.memcached.MemcachedClientIF
 
addObserver(ConnectionObserver) - Method in class net.spy.memcached.MemcachedConnection
Add a connection observer.
addOp(Operation) - Method in interface net.spy.memcached.MemcachedNode
Add an operation to the queue.
addOp(Operation) - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
addOperation(String, Operation) - Method in class net.spy.memcached.MemcachedConnection
Add an operation to the given connection.
addOperation(MemcachedNode, Operation) - Method in class net.spy.memcached.MemcachedConnection
 
addOperation(CASOperation) - Method in class net.spy.memcached.protocol.binary.OptimizedSetImpl
 
addOperations(Map<MemcachedNode, Operation>) - Method in class net.spy.memcached.MemcachedConnection
 
AddrUtil - Class in net.spy.memcached
Convenience utilities for simplifying common address parsing.
AddrUtil() - Constructor for class net.spy.memcached.AddrUtil
 
append(long, String, Object) - Method in class net.spy.memcached.MemcachedClient
Append to an existing value in the cache.
append(long, String, T, Transcoder<T>) - Method in class net.spy.memcached.MemcachedClient
Append to an existing value in the cache.
append(long, String, Object) - Method in interface net.spy.memcached.MemcachedClientIF
 
append(long, String, T, Transcoder<T>) - Method in interface net.spy.memcached.MemcachedClientIF
 
ArrayModNodeLocator - Class in net.spy.memcached
NodeLocator implementation for dealing with simple array lookups using a modulus of the hash code and node list length.
ArrayModNodeLocator(List<MemcachedNode>, HashAlgorithm) - Constructor for class net.spy.memcached.ArrayModNodeLocator
Construct an ArraymodNodeLocator over the given array of nodes and using the given hash algorithm.
ArrayOperationQueueFactory - Class in net.spy.memcached.ops
OperationQueueFactory that uses an ArrayBlockingQueue.
ArrayOperationQueueFactory(int) - Constructor for class net.spy.memcached.ops.ArrayOperationQueueFactory
Create an ArrayOperationQueueFactory that creates blocking queues with the given capacity.
AsciiMemcachedNodeImpl - Class in net.spy.memcached.protocol.ascii
Memcached node for the ASCII protocol.
AsciiMemcachedNodeImpl(SocketAddress, SocketChannel, int, BlockingQueue<Operation>, BlockingQueue<Operation>, BlockingQueue<Operation>) - Constructor for class net.spy.memcached.protocol.ascii.AsciiMemcachedNodeImpl
 
AsciiOperationFactory - Class in net.spy.memcached.protocol.ascii
Operation factory for the ascii protocol.
AsciiOperationFactory() - Constructor for class net.spy.memcached.protocol.ascii.AsciiOperationFactory
 
asyncCAS(String, long, T, Transcoder<T>) - Method in class net.spy.memcached.MemcachedClient
Asynchronous CAS operation.
asyncCAS(String, long, int, T, Transcoder<T>) - Method in class net.spy.memcached.MemcachedClient
Asynchronous CAS operation.
asyncCAS(String, long, Object) - Method in class net.spy.memcached.MemcachedClient
Asynchronous CAS operation using the default transcoder.
asyncCAS(String, long, T, Transcoder<T>) - Method in interface net.spy.memcached.MemcachedClientIF
 
asyncCAS(String, long, Object) - Method in interface net.spy.memcached.MemcachedClientIF
 
asyncDecode(CachedData) - Method in class net.spy.memcached.transcoders.BaseSerializingTranscoder
 
asyncDecode(CachedData) - Method in class net.spy.memcached.transcoders.IntegerTranscoder
 
asyncDecode(CachedData) - Method in class net.spy.memcached.transcoders.LongTranscoder
 
asyncDecode(CachedData) - Method in class net.spy.memcached.transcoders.SerializingTranscoder
 
asyncDecode(CachedData) - Method in interface net.spy.memcached.transcoders.Transcoder
Should the transcoder be run asyncronously.
asyncDecr(String, int) - Method in class net.spy.memcached.MemcachedClient
Asynchronous decrement.
asyncDecr(String, int) - Method in interface net.spy.memcached.MemcachedClientIF
 
asyncGet(String, Transcoder<T>) - Method in class net.spy.memcached.MemcachedClient
Get the given key asynchronously.
asyncGet(String) - Method in class net.spy.memcached.MemcachedClient
Get the given key asynchronously and decode with the default transcoder.
asyncGet(String, Transcoder<T>) - Method in interface net.spy.memcached.MemcachedClientIF
 
asyncGet(String) - Method in interface net.spy.memcached.MemcachedClientIF
 
asyncGetBulk(Collection<String>, Transcoder<T>) - Method in class net.spy.memcached.MemcachedClient
Asynchronously get a bunch of objects from the cache.
asyncGetBulk(Collection<String>) - Method in class net.spy.memcached.MemcachedClient
Asynchronously get a bunch of objects from the cache and decode them with the given transcoder.
asyncGetBulk(Transcoder<T>, String...) - Method in class net.spy.memcached.MemcachedClient
Varargs wrapper for asynchronous bulk gets.
asyncGetBulk(String...) - Method in class net.spy.memcached.MemcachedClient
Varargs wrapper for asynchronous bulk gets with the default transcoder.
asyncGetBulk(Collection<String>, Transcoder<T>) - Method in interface net.spy.memcached.MemcachedClientIF
 
asyncGetBulk(Collection<String>) - Method in interface net.spy.memcached.MemcachedClientIF
 
asyncGetBulk(Transcoder<T>, String...) - Method in interface net.spy.memcached.MemcachedClientIF
 
asyncGetBulk(String...) - Method in interface net.spy.memcached.MemcachedClientIF
 
asyncGets(String, Transcoder<T>) - Method in class net.spy.memcached.MemcachedClient
Gets (with CAS support) the given key asynchronously.
asyncGets(String) - Method in class net.spy.memcached.MemcachedClient
Gets (with CAS support) the given key asynchronously and decode using the default transcoder.
asyncGets(String, Transcoder<T>) - Method in interface net.spy.memcached.MemcachedClientIF
 
asyncGets(String) - Method in interface net.spy.memcached.MemcachedClientIF
 
asyncIncr(String, int) - Method in class net.spy.memcached.MemcachedClient
Asychronous increment.
asyncIncr(String, int) - Method in interface net.spy.memcached.MemcachedClientIF
 

B

BaseCacheMap<V> - Class in net.spy.memcached
Base class for a Map interface to memcached.
BaseCacheMap(MemcachedClientIF, int, String, Transcoder<V>) - Constructor for class net.spy.memcached.BaseCacheMap
Build a BaseCacheMap.
BaseOperationFactory - Class in net.spy.memcached.ops
Base class for operation factories.
BaseOperationFactory() - Constructor for class net.spy.memcached.ops.BaseOperationFactory
 
BaseOperationImpl - Class in net.spy.memcached.protocol
Base class for protocol-specific operation implementations.
BaseOperationImpl() - Constructor for class net.spy.memcached.protocol.BaseOperationImpl
 
BaseSerializingTranscoder - Class in net.spy.memcached.transcoders
Base class for any transcoders that may want to work with serialized or compressed data.
BaseSerializingTranscoder(int) - Constructor for class net.spy.memcached.transcoders.BaseSerializingTranscoder
Initialize a serializing transcoder with the given maximum data size.
BinaryConnectionFactory - Class in net.spy.memcached
Default connection factory for binary wire protocol connections.
BinaryConnectionFactory() - Constructor for class net.spy.memcached.BinaryConnectionFactory
Create a DefaultConnectionFactory with the default parameters.
BinaryConnectionFactory(int, int) - Constructor for class net.spy.memcached.BinaryConnectionFactory
Create a BinaryConnectionFactory with the given maximum operation queue length, and the given read buffer size.
BinaryConnectionFactory(int, int, HashAlgorithm) - Constructor for class net.spy.memcached.BinaryConnectionFactory
Construct a BinaryConnectionFactory with the given parameters.
BinaryMemcachedNodeImpl - Class in net.spy.memcached.protocol.binary
Implementation of MemcachedNode for speakers of the binary protocol.
BinaryMemcachedNodeImpl(SocketAddress, SocketChannel, int, BlockingQueue<Operation>, BlockingQueue<Operation>, BlockingQueue<Operation>) - Constructor for class net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl
 
BinaryOperationFactory - Class in net.spy.memcached.protocol.binary
Factory for binary operations.
BinaryOperationFactory() - Constructor for class net.spy.memcached.protocol.binary.BinaryOperationFactory
 
broadcastOperation(BroadcastOpFactory) - Method in class net.spy.memcached.MemcachedConnection
Broadcast an operation to all nodes.
BroadcastOpFactory - Interface in net.spy.memcached
Factory for creating Operations to be broadcast.
build() - Method in class net.spy.memcached.ConnectionFactoryBuilder
Get the ConnectionFactory set up with the provided parameters.
BuildInfo - Class in net.spy.memcached
Information regarding this spy.jar build.
BuildInfo() - Constructor for class net.spy.memcached.BuildInfo
Get an instance of BuildInfo that describes the spy.jar build.
BuildInfo(String) - Constructor for class net.spy.memcached.BuildInfo
Get an instance of BuildInfo that describes the build info found in the given resource.
BulkGetFuture<T> - Class in net.spy.memcached.internal
Future for handling results from bulk gets.
BulkGetFuture(Map<String, Future<T>>, Collection<Operation>, CountDownLatch) - Constructor for class net.spy.memcached.internal.BulkGetFuture
 
bytes() - Method in class net.spy.memcached.protocol.binary.OptimizedSetImpl
 

C

CachedData - Class in net.spy.memcached
Cached data with its attributes.
CachedData(int, byte[], int) - Constructor for class net.spy.memcached.CachedData
Get a CachedData instance for the given flags and byte array.
CacheLoader - Class in net.spy.memcached.util
CacheLoader provides efficient mechanisms for storing lots of data.
CacheLoader(MemcachedClientIF) - Constructor for class net.spy.memcached.util.CacheLoader
Simple CacheLoader constructor that doesn't provide any feedback and caches forever.
CacheLoader(MemcachedClientIF, ExecutorService, CacheLoader.StorageListener, int) - Constructor for class net.spy.memcached.util.CacheLoader
Get a CacheLoader with all the options.
CacheLoader.StorageListener - Interface in net.spy.memcached.util
If you are interested in the results of your data load, this interface will receive them.
CacheMap - Class in net.spy.memcached
A Map interface to memcached.
CacheMap(MemcachedClientIF, int, String) - Constructor for class net.spy.memcached.CacheMap
Construct a CacheMap over the given MemcachedClient.
CacheMap(MemcachedClientIF, String) - Constructor for class net.spy.memcached.CacheMap
Construct a CacheMap over the given MemcachedClient with no expiration.
callback - Variable in class net.spy.memcached.protocol.BaseOperationImpl
 
cancel(boolean) - Method in class net.spy.memcached.internal.BulkGetFuture
 
cancel(boolean) - Method in class net.spy.memcached.internal.GetFuture
 
cancel(boolean) - Method in class net.spy.memcached.internal.ImmediateFuture
 
cancel(boolean) - Method in class net.spy.memcached.internal.OperationFuture
 
cancel() - Method in interface net.spy.memcached.ops.Operation
Cancel this operation.
cancel() - Method in class net.spy.memcached.protocol.BaseOperationImpl
 
CANCELLED - Static variable in class net.spy.memcached.protocol.BaseOperationImpl
Status object for cancelled operations.
CancelledOperationStatus - Class in net.spy.memcached.ops
Operation status indicating an operation was cancelled.
CancelledOperationStatus() - Constructor for class net.spy.memcached.ops.CancelledOperationStatus
 
cas(String, T, int, CASMutation<T>) - Method in class net.spy.memcached.CASMutator
CAS a new value in for a key.
cas(String, long, T, Transcoder<T>) - Method in class net.spy.memcached.MemcachedClient
Perform a synchronous CAS operation.
cas(String, long, int, T, Transcoder<T>) - Method in class net.spy.memcached.MemcachedClient
Perform a synchronous CAS operation.
cas(String, long, Object) - Method in class net.spy.memcached.MemcachedClient
Perform a synchronous CAS operation with the default transcoder.
cas(String, long, T, Transcoder<T>) - Method in interface net.spy.memcached.MemcachedClientIF
 
cas(String, long, Object) - Method in interface net.spy.memcached.MemcachedClientIF
 
cas(StoreType, String, long, int, int, byte[], OperationCallback) - Method in interface net.spy.memcached.OperationFactory
Create a CAS operation.
cas(StoreType, String, long, int, int, byte[], OperationCallback) - Method in class net.spy.memcached.protocol.ascii.AsciiOperationFactory
 
cas(StoreType, String, long, int, int, byte[], OperationCallback) - Method in class net.spy.memcached.protocol.binary.BinaryOperationFactory
 
CASMutation<T> - Interface in net.spy.memcached
Defines a mutation mechanism for a high-level CAS client interface.
CASMutator<T> - Class in net.spy.memcached
Object that provides mutation via CAS over a given memcache client.
CASMutator(MemcachedClientIF, Transcoder<T>, int) - Constructor for class net.spy.memcached.CASMutator
Construct a CASMutator that uses the given client.
CASMutator(MemcachedClientIF, Transcoder<T>) - Constructor for class net.spy.memcached.CASMutator
Construct a CASMutator that uses the given client.
CASOperation - Interface in net.spy.memcached.ops
Operation that represents compare-and-swap.
CASOperationStatus - Class in net.spy.memcached.ops
OperationStatus subclass for indicating CAS status.
CASOperationStatus(boolean, String, CASResponse) - Constructor for class net.spy.memcached.ops.CASOperationStatus
 
CASResponse - Enum in net.spy.memcached
Response codes for a CAS operation.
CASValue<T> - Class in net.spy.memcached
A value with a CAS identifier.
CASValue(long, T) - Constructor for class net.spy.memcached.CASValue
Construct a new CASValue with the given identifer and value.
cat(ConcatenationType, long, String, byte[], OperationCallback) - Method in interface net.spy.memcached.OperationFactory
Get a concatenation operation.
cat(ConcatenationType, long, String, byte[], OperationCallback) - Method in class net.spy.memcached.protocol.ascii.AsciiOperationFactory
 
cat(ConcatenationType, long, String, byte[], OperationCallback) - Method in class net.spy.memcached.protocol.binary.BinaryOperationFactory
 
charset - Variable in class net.spy.memcached.transcoders.BaseSerializingTranscoder
 
CheckedOperationTimeoutException - Exception in net.spy.memcached.internal
Timeout exception that tracks the original operation.
CheckedOperationTimeoutException(String, Operation) - Constructor for exception net.spy.memcached.internal.CheckedOperationTimeoutException
Construct a CheckedOperationTimeoutException with the given message and operation.
CheckedOperationTimeoutException(String, Collection<Operation>) - Constructor for exception net.spy.memcached.internal.CheckedOperationTimeoutException
 
clear() - Method in class net.spy.memcached.BaseCacheMap
 
clone(KeyedOperation) - Method in interface net.spy.memcached.OperationFactory
Clone an operation.
clone(KeyedOperation) - Method in class net.spy.memcached.ops.BaseOperationFactory
 
cloneGet(KeyedOperation) - Method in class net.spy.memcached.ops.BaseOperationFactory
 
cloneGet(KeyedOperation) - Method in class net.spy.memcached.protocol.ascii.AsciiOperationFactory
 
cloneGet(KeyedOperation) - Method in class net.spy.memcached.protocol.binary.BinaryOperationFactory
 
close(Closeable) - Static method in class net.spy.memcached.compat.CloseUtil
Close a closeable.
CloseUtil - Class in net.spy.memcached.compat
CloseUtil exists to provide a safe means to close anything closeable.
CloseUtil() - Constructor for class net.spy.memcached.compat.CloseUtil
 
complete() - Method in class net.spy.memcached.ops.MultiOperationCallback
 
complete() - Method in interface net.spy.memcached.ops.OperationCallback
Called whenever an operation completes.
complete() - Method in class net.spy.memcached.protocol.GetCallbackWrapper
 
complete() - Method in class net.spy.memcached.protocol.ProxyCallback
 
compress(byte[]) - Method in class net.spy.memcached.transcoders.BaseSerializingTranscoder
Compress the given array of bytes.
COMPRESSED - Static variable in class net.spy.memcached.transcoders.WhalinV1Transcoder
 
compressionThreshold - Variable in class net.spy.memcached.transcoders.BaseSerializingTranscoder
 
computeMd5(String) - Static method in enum net.spy.memcached.HashAlgorithm
Get the md5 of the given key.
ConcatenationOperation - Interface in net.spy.memcached.ops
ConcatenationOperation is used to append or prepend data to an existing object in the cache.
ConcatenationOperationImpl - Class in net.spy.memcached.protocol.ascii
Operation for ascii concatenations.
ConcatenationOperationImpl(ConcatenationType, String, byte[], OperationCallback) - Constructor for class net.spy.memcached.protocol.ascii.ConcatenationOperationImpl
 
ConcatenationType - Enum in net.spy.memcached.ops
Types of concatenation operations.
connected() - Method in interface net.spy.memcached.MemcachedNode
Notify this node that it has reconnected.
connected() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
connectionEstablished(SocketAddress, int) - Method in interface net.spy.memcached.ConnectionObserver
A connection has just successfully been established on the given socket.
ConnectionFactory - Interface in net.spy.memcached
Factory for creating instances of MemcachedConnection.
ConnectionFactoryBuilder - Class in net.spy.memcached
Builder for more easily configuring a ConnectionFactory.
ConnectionFactoryBuilder() - Constructor for class net.spy.memcached.ConnectionFactoryBuilder
 
ConnectionFactoryBuilder.Locator - Enum in net.spy.memcached
Type of node locator to use.
ConnectionFactoryBuilder.Protocol - Enum in net.spy.memcached
Type of protocol to use for connections.
connectionLost(SocketAddress) - Method in interface net.spy.memcached.ConnectionObserver
A connection was just lost on the given socket.
ConnectionObserver - Interface in net.spy.memcached
Users of this interface will be notified when changes to the state of connections take place.
containsKey(Object) - Method in class net.spy.memcached.BaseCacheMap
 
containsValue(Object) - Method in class net.spy.memcached.BaseCacheMap
This method always returns false, as truth cannot be determined without iteration.
copyInputQueue() - Method in interface net.spy.memcached.MemcachedNode
Move all of the operations delivered via addOperation into the internal write queue.
copyInputQueue() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
create() - Method in class net.spy.memcached.ops.ArrayOperationQueueFactory
 
create() - Method in class net.spy.memcached.ops.LinkedOperationQueueFactory
 
create() - Method in interface net.spy.memcached.ops.OperationQueueFactory
Create an instance of a queue.
createConnection(List<InetSocketAddress>) - Method in interface net.spy.memcached.ConnectionFactory
Create a MemcachedConnection for the given SocketAddresses.
createConnection(List<InetSocketAddress>) - Method in class net.spy.memcached.DefaultConnectionFactory
 
createLocator(List<MemcachedNode>) - Method in interface net.spy.memcached.ConnectionFactory
Create a NodeLocator instance for the given list of nodes.
createLocator(List<MemcachedNode>) - Method in class net.spy.memcached.DefaultConnectionFactory
 
createLocator(List<MemcachedNode>) - Method in class net.spy.memcached.KetamaConnectionFactory
 
createMemcachedNode(SocketAddress, SocketChannel, int) - Method in class net.spy.memcached.BinaryConnectionFactory
 
createMemcachedNode(SocketAddress, SocketChannel, int) - Method in interface net.spy.memcached.ConnectionFactory
Create a new memcached node.
createMemcachedNode(SocketAddress, SocketChannel, int) - Method in class net.spy.memcached.DefaultConnectionFactory
 
createOperationQueue() - Method in interface net.spy.memcached.ConnectionFactory
Create a BlockingQueue for operations for a connection.
createOperationQueue() - Method in class net.spy.memcached.DefaultConnectionFactory
 
createReadOperationQueue() - Method in interface net.spy.memcached.ConnectionFactory
Create a BlockingQueue for the operations currently expecting to read responses from memcached.
createReadOperationQueue() - Method in class net.spy.memcached.DefaultConnectionFactory
 
createWriteOperationQueue() - Method in interface net.spy.memcached.ConnectionFactory
Create a BlockingQueue for the operations currently expecting to write requests to memcached.
createWriteOperationQueue() - Method in class net.spy.memcached.DefaultConnectionFactory
 

D

debug(Object, Throwable) - Method in class net.spy.memcached.compat.log.AbstractLogger
Log a message at debug level.
debug(String, Object...) - Method in class net.spy.memcached.compat.log.AbstractLogger
Log a formatted message at debug level.
debug(Object) - Method in class net.spy.memcached.compat.log.AbstractLogger
Log a message at debug level.
debug(Object, Throwable) - Method in interface net.spy.memcached.compat.log.Logger
Log a message at debug level.
debug(Object) - Method in interface net.spy.memcached.compat.log.Logger
Log a message at debug level.
debug(String, Object...) - Method in interface net.spy.memcached.compat.log.Logger
Log a formatted message at debug level.
decode(CachedData) - Method in class net.spy.memcached.transcoders.IntegerTranscoder
 
decode(CachedData) - Method in class net.spy.memcached.transcoders.LongTranscoder
 
decode(CachedData) - Method in class net.spy.memcached.transcoders.SerializingTranscoder
 
decode(CachedData) - Method in interface net.spy.memcached.transcoders.Transcoder
Decode the cached object into the object it represents.
decode(Transcoder<T>, CachedData) - Method in class net.spy.memcached.transcoders.TranscodeService
Perform a decode.
decode(CachedData) - Method in class net.spy.memcached.transcoders.WhalinTranscoder
 
decode(CachedData) - Method in class net.spy.memcached.transcoders.WhalinV1Transcoder
 
decodeBoolean(byte[]) - Method in class net.spy.memcached.transcoders.TranscoderUtils
 
decodeBoolean(byte[]) - Method in class net.spy.memcached.transcoders.WhalinTranscoder
 
decodeByte(byte[]) - Method in class net.spy.memcached.transcoders.TranscoderUtils
 
decodeCharacter(byte[]) - Method in class net.spy.memcached.transcoders.WhalinTranscoder
 
decodeInt(byte[]) - Method in class net.spy.memcached.transcoders.TranscoderUtils
 
decodeLong(byte[]) - Method in class net.spy.memcached.transcoders.TranscoderUtils
 
decodeString(byte[]) - Method in class net.spy.memcached.transcoders.BaseSerializingTranscoder
Decode the string with the current character set.
decompress(byte[]) - Method in class net.spy.memcached.transcoders.BaseSerializingTranscoder
Decompress the given array of bytes.
decr(String, int) - Method in class net.spy.memcached.MemcachedClient
Decrement the given key by the given value.
decr(String, int, long, int) - Method in class net.spy.memcached.MemcachedClient
Decrement the given counter, returning the new value.
decr(String, int, long) - Method in class net.spy.memcached.MemcachedClient
Decrement the given counter, returning the new value.
decr(String, int) - Method in interface net.spy.memcached.MemcachedClientIF
 
decr(String, int, long, int) - Method in interface net.spy.memcached.MemcachedClientIF
 
decr(String, int, long) - Method in interface net.spy.memcached.MemcachedClientIF
 
DEFAULT_COMPRESSION_THRESHOLD - Static variable in class net.spy.memcached.transcoders.BaseSerializingTranscoder
Default compression threshold value.
DEFAULT_FAILURE_MODE - Static variable in class net.spy.memcached.DefaultConnectionFactory
Default failure mode.
DEFAULT_HASH - Static variable in class net.spy.memcached.DefaultConnectionFactory
Default hash algorithm.
DEFAULT_MAX_RECONNECT_DELAY - Static variable in class net.spy.memcached.DefaultConnectionFactory
Maximum amount of time (in seconds) to wait between reconnect attempts.
DEFAULT_OP_QUEUE_LEN - Static variable in class net.spy.memcached.DefaultConnectionFactory
Maximum length of the operation queue returned by this connection factory.
DEFAULT_OPERATION_TIMEOUT - Static variable in class net.spy.memcached.DefaultConnectionFactory
Default operation timeout in milliseconds.
DEFAULT_READ_BUFFER_SIZE - Static variable in class net.spy.memcached.DefaultConnectionFactory
The read buffer size for each server connection from this factory.
DefaultConnectionFactory - Class in net.spy.memcached
Default implementation of ConnectionFactory.
DefaultConnectionFactory(int, int, HashAlgorithm) - Constructor for class net.spy.memcached.DefaultConnectionFactory
Construct a DefaultConnectionFactory with the given parameters.
DefaultConnectionFactory(int, int) - Constructor for class net.spy.memcached.DefaultConnectionFactory
Create a DefaultConnectionFactory with the given maximum operation queue length, and the given read buffer size.
DefaultConnectionFactory() - Constructor for class net.spy.memcached.DefaultConnectionFactory
Create a DefaultConnectionFactory with the default parameters.
DefaultKetamaNodeLocatorConfiguration - Class in net.spy.memcached.util
A Default implementation of the configuration required for the KetamaNodeLocator algorithm to run.
DefaultKetamaNodeLocatorConfiguration() - Constructor for class net.spy.memcached.util.DefaultKetamaNodeLocatorConfiguration
 
DefaultLogger - Class in net.spy.memcached.compat.log
Default logger implementation.
DefaultLogger(String) - Constructor for class net.spy.memcached.compat.log.DefaultLogger
Get an instance of DefaultLogger.
delete(String, int) - Method in class net.spy.memcached.MemcachedClient
Deprecated. Hold values are no longer honored.
delete(String) - Method in class net.spy.memcached.MemcachedClient
Delete the given key from the cache.
delete(String) - Method in interface net.spy.memcached.MemcachedClientIF
 
delete(String, OperationCallback) - Method in interface net.spy.memcached.OperationFactory
Create a deletion operation.
delete(String, OperationCallback) - Method in class net.spy.memcached.protocol.ascii.AsciiOperationFactory
 
delete(String, OperationCallback) - Method in class net.spy.memcached.protocol.binary.BinaryOperationFactory
 
DeleteOperation - Interface in net.spy.memcached.ops
Deletion operation.
deserialize(byte[]) - Method in class net.spy.memcached.transcoders.BaseSerializingTranscoder
Get the object represented by the given serialized bytes.
destroyInputQueue() - Method in interface net.spy.memcached.MemcachedNode
Extract all queued items for this node destructively.
destroyInputQueue() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 

E

encode(Integer) - Method in class net.spy.memcached.transcoders.IntegerTranscoder
 
encode(Long) - Method in class net.spy.memcached.transcoders.LongTranscoder
 
encode(Object) - Method in class net.spy.memcached.transcoders.SerializingTranscoder
 
encode(T) - Method in interface net.spy.memcached.transcoders.Transcoder
Encode the given object for storage.
encode(Object) - Method in class net.spy.memcached.transcoders.WhalinTranscoder
 
encode(Object) - Method in class net.spy.memcached.transcoders.WhalinV1Transcoder
 
encodeBoolean(boolean) - Method in class net.spy.memcached.transcoders.TranscoderUtils
 
encodeBoolean(boolean) - Method in class net.spy.memcached.transcoders.WhalinTranscoder
 
encodeByte(byte) - Method in class net.spy.memcached.transcoders.TranscoderUtils
 
encodeInt(int) - Method in class net.spy.memcached.transcoders.TranscoderUtils
 
encodeLong(long) - Method in class net.spy.memcached.transcoders.TranscoderUtils
 
encodeNum(long, int) - Method in class net.spy.memcached.transcoders.TranscoderUtils
 
encodeString(String) - Method in class net.spy.memcached.transcoders.BaseSerializingTranscoder
Encode a string into the current character set.
entrySet() - Method in class net.spy.memcached.BaseCacheMap
 
error(Object, Throwable) - Method in class net.spy.memcached.compat.log.AbstractLogger
Log a message at error level.
error(String, Object...) - Method in class net.spy.memcached.compat.log.AbstractLogger
Log a formatted message at debug level.
error(Object) - Method in class net.spy.memcached.compat.log.AbstractLogger
Log a message at error level.
error(Object, Throwable) - Method in interface net.spy.memcached.compat.log.Logger
Log a message at error level.
error(Object) - Method in interface net.spy.memcached.compat.log.Logger
Log a message at error level.
error(String, Object...) - Method in interface net.spy.memcached.compat.log.Logger
Log a formatted message at debug level.
errorStoring(String, Exception) - Method in interface net.spy.memcached.util.CacheLoader.StorageListener
 

F

FailureMode - Enum in net.spy.memcached
Failure modes for node failures.
fatal(Object, Throwable) - Method in class net.spy.memcached.compat.log.AbstractLogger
Log a message at fatal level.
fatal(String, Object...) - Method in class net.spy.memcached.compat.log.AbstractLogger
Log a formatted message at debug level.
fatal(Object) - Method in class net.spy.memcached.compat.log.AbstractLogger
Log a message at fatal level.
fatal(Object, Throwable) - Method in interface net.spy.memcached.compat.log.Logger
Log a message at fatal level.
fatal(Object) - Method in interface net.spy.memcached.compat.log.Logger
Log a message at fatal level.
fatal(String, Object...) - Method in interface net.spy.memcached.compat.log.Logger
Log a formatted message at debug level.
fillWriteBuffer(boolean) - Method in interface net.spy.memcached.MemcachedNode
Fill the write buffer with data from the next operations in the queue.
fillWriteBuffer(boolean) - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
finishedPayload(byte[]) - Method in class net.spy.memcached.protocol.binary.OptimizedSetImpl
 
finishedPayload(byte[]) - Method in class net.spy.memcached.protocol.binary.StatsOperationImpl
 
fixupOps() - Method in interface net.spy.memcached.MemcachedNode
Fix up the selection ops on the selection key.
fixupOps() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
flush(int) - Method in class net.spy.memcached.MemcachedClient
Flush all caches from all servers with a delay of application.
flush() - Method in class net.spy.memcached.MemcachedClient
Flush all caches from all servers immediately.
flush(int) - Method in interface net.spy.memcached.MemcachedClientIF
 
flush() - Method in interface net.spy.memcached.MemcachedClientIF
 
flush(int, OperationCallback) - Method in interface net.spy.memcached.OperationFactory
Create a flush operation.
flush(int, OperationCallback) - Method in class net.spy.memcached.protocol.ascii.AsciiOperationFactory
 
flush(int, OperationCallback) - Method in class net.spy.memcached.protocol.binary.BinaryOperationFactory
 
FlushOperation - Interface in net.spy.memcached.ops
Flush operation marker.

G

get(Object) - Method in class net.spy.memcached.BaseCacheMap
 
get() - Method in class net.spy.memcached.internal.BulkGetFuture
 
get(long, TimeUnit) - Method in class net.spy.memcached.internal.BulkGetFuture
 
get() - Method in class net.spy.memcached.internal.GetFuture
 
get(long, TimeUnit) - Method in class net.spy.memcached.internal.GetFuture
 
get() - Method in class net.spy.memcached.internal.ImmediateFuture
 
get(long, TimeUnit) - Method in class net.spy.memcached.internal.ImmediateFuture
 
get() - Method in class net.spy.memcached.internal.OperationFuture
 
get(long, TimeUnit) - Method in class net.spy.memcached.internal.OperationFuture
 
get(String, Transcoder<T>) - Method in class net.spy.memcached.MemcachedClient
Get with a single key.
get(String) - Method in class net.spy.memcached.MemcachedClient
Get with a single key and decode using the default transcoder.
get(String, Transcoder<T>) - Method in interface net.spy.memcached.MemcachedClientIF
 
get(String) - Method in interface net.spy.memcached.MemcachedClientIF
 
get(String, GetOperation.Callback) - Method in interface net.spy.memcached.OperationFactory
Create a get operation.
get(Collection<String>, GetOperation.Callback) - Method in interface net.spy.memcached.OperationFactory
Create a get operation.
get(String, GetOperation.Callback) - Method in class net.spy.memcached.protocol.ascii.AsciiOperationFactory
 
get(Collection<String>, GetOperation.Callback) - Method in class net.spy.memcached.protocol.ascii.AsciiOperationFactory
 
get(String, GetOperation.Callback) - Method in class net.spy.memcached.protocol.binary.BinaryOperationFactory
 
get(Collection<String>, GetOperation.Callback) - Method in class net.spy.memcached.protocol.binary.BinaryOperationFactory
 
getAddresses(String) - Static method in class net.spy.memcached.AddrUtil
Split a string in the form of "host:port host2:port" into a List of InetSocketAddress instances suitable for instantiating a MemcachedClient.
getAll() - Method in class net.spy.memcached.ArrayModNodeLocator
 
getAll() - Method in class net.spy.memcached.KetamaNodeLocator
 
getAll() - Method in interface net.spy.memcached.NodeLocator
Get all memcached nodes.
getAvailableServers() - Method in class net.spy.memcached.MemcachedClient
Get the addresses of available servers.
getAvailableServers() - Method in interface net.spy.memcached.MemcachedClientIF
 
getBuffer() - Method in interface net.spy.memcached.ops.Operation
Get the write buffer for this operation.
getBuffer() - Method in class net.spy.memcached.protocol.BaseOperationImpl
 
getBuildDate() - Method in class net.spy.memcached.BuildInfo
Get the date of this build.
getBulk(Collection<String>, Transcoder<T>) - Method in class net.spy.memcached.MemcachedClient
Get the values for multiple keys from the cache.
getBulk(Collection<String>) - Method in class net.spy.memcached.MemcachedClient
Get the values for multiple keys from the cache.
getBulk(Transcoder<T>, String...) - Method in class net.spy.memcached.MemcachedClient
Get the values for multiple keys from the cache.
getBulk(String...) - Method in class net.spy.memcached.MemcachedClient
Get the values for multiple keys from the cache.
getBulk(Collection<String>, Transcoder<T>) - Method in interface net.spy.memcached.MemcachedClientIF
 
getBulk(Collection<String>) - Method in interface net.spy.memcached.MemcachedClientIF
 
getBulk(Transcoder<T>, String...) - Method in interface net.spy.memcached.MemcachedClientIF
 
getBulk(String...) - Method in interface net.spy.memcached.MemcachedClientIF
 
getBy() - Method in interface net.spy.memcached.ops.MutatorOperation
Get the amount we're mutating by.
getBytes() - Method in interface net.spy.memcached.ops.CASOperation
Get the bytes to be set during this operation.
getBytesRemainingToWrite() - Method in interface net.spy.memcached.MemcachedNode
Get the number of bytes remaining to write.
getBytesRemainingToWrite() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
getCallback() - Method in interface net.spy.memcached.ops.Operation
Get the callback for this get operation.
getCallback() - Method in class net.spy.memcached.protocol.BaseOperationImpl
Get the operation callback associated with this operation.
GetCallbackWrapper - Class in net.spy.memcached.protocol
Wrapper callback for use in optimized gets.
GetCallbackWrapper(int, GetOperation.Callback) - Constructor for class net.spy.memcached.protocol.GetCallbackWrapper
 
getCas() - Method in class net.spy.memcached.CASValue
Get the CAS identifier.
getCASResponse() - Method in class net.spy.memcached.ops.CASOperationStatus
Get the CAS response indicated here.
getCasValue() - Method in interface net.spy.memcached.ops.CASOperation
Get the CAS value advised for this operation.
getCasValue() - Method in interface net.spy.memcached.ops.ConcatenationOperation
Get the CAS value sent with this operation.
getCasValue() - Method in class net.spy.memcached.protocol.ascii.ConcatenationOperationImpl
 
getChannel() - Method in interface net.spy.memcached.MemcachedNode
Get the SocketChannel for this connection.
getChannel() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
getCompletedThreads(int, Callable<T>) - Static method in class net.spy.memcached.compat.SyncThread
Get a collection of SyncThreads that all began as close to the same time as possible and have all completed.
getCurrentReadOp() - Method in interface net.spy.memcached.MemcachedNode
Get the operation at the top of the queue that is requiring input.
getCurrentReadOp() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
getCurrentWriteOp() - Method in interface net.spy.memcached.MemcachedNode
Get the operation at the top of the queue that has information available to write.
getCurrentWriteOp() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
getData() - Method in class net.spy.memcached.CachedData
Get the stored data.
getData() - Method in interface net.spy.memcached.ops.ConcatenationOperation
Get the bytes to be set during this operation.
getData() - Method in interface net.spy.memcached.ops.StoreOperation
Get the bytes to be set during this operation.
getDefault() - Method in interface net.spy.memcached.ops.MutatorOperation
Get the default value (for when there's no value to mutate).
getDefaultTranscoder() - Method in interface net.spy.memcached.ConnectionFactory
Get the default transcoder to be used in connections created by this factory.
getDefaultTranscoder() - Method in class net.spy.memcached.DefaultConnectionFactory
 
getDistinctResultCount(int, Callable<T>) - Static method in class net.spy.memcached.compat.SyncThread
Get the distinct result count for the given callable at the given concurrency.
getException() - Method in interface net.spy.memcached.ops.Operation
Get the exception that occurred (or null if no exception occurred).
getException() - Method in class net.spy.memcached.protocol.BaseOperationImpl
 
getExpiration() - Method in interface net.spy.memcached.ops.CASOperation
Get the expiration to be set for this operation.
getExpiration() - Method in interface net.spy.memcached.ops.MutatorOperation
Get the expiration to set in case of a new entry.
getExpiration() - Method in interface net.spy.memcached.ops.StoreOperation
Get the expiration value to be set.
getFailureMode() - Method in interface net.spy.memcached.ConnectionFactory
Get the default failure mode for the underlying connection.
getFailureMode() - Method in class net.spy.memcached.DefaultConnectionFactory
 
getFile(String) - Method in class net.spy.memcached.BuildInfo
Get a URL to a file within this classloader.
getFlags() - Method in class net.spy.memcached.CachedData
Get the flags stored along with this value.
getFlags() - Method in interface net.spy.memcached.ops.CASOperation
Get the flags to be set for this operation.
getFlags() - Method in interface net.spy.memcached.ops.StoreOperation
Get the flags to be set.
GetFuture<T> - Class in net.spy.memcached.internal
Future returned for GET operations.
GetFuture(CountDownLatch, long) - Constructor for class net.spy.memcached.internal.GetFuture
 
getHandlingNode() - Method in interface net.spy.memcached.ops.Operation
Get the node that should've been handling this operation.
getHandlingNode() - Method in class net.spy.memcached.protocol.BaseOperationImpl
 
getHashAlg() - Method in interface net.spy.memcached.ConnectionFactory
Get the hash algorithm to be used.
getHashAlg() - Method in class net.spy.memcached.DefaultConnectionFactory
 
getInitialObservers() - Method in interface net.spy.memcached.ConnectionFactory
Observers that should be established at the time of connection instantiation.
getInitialObservers() - Method in class net.spy.memcached.DefaultConnectionFactory
 
getKeyBytes(String) - Static method in class net.spy.memcached.KeyUtil
Get the bytes for a key.
getKeyBytes(Collection<String>) - Static method in class net.spy.memcached.KeyUtil
Get the keys in byte form for all of the string keys.
getKeyForNode(MemcachedNode, int) - Method in class net.spy.memcached.util.DefaultKetamaNodeLocatorConfiguration
Returns a uniquely identifying key, suitable for hashing by the KetamaNodeLocator algorithm.
getKeyForNode(MemcachedNode, int) - Method in interface net.spy.memcached.util.KetamaNodeLocatorConfiguration
Returns a uniquely identifying key, suitable for hashing by the KetamaNodeLocator algorithm.
getKeys() - Method in interface net.spy.memcached.ops.KeyedOperation
Get the keys requested in this GetOperation.
getLogger(Class<?>) - Static method in class net.spy.memcached.compat.log.LoggerFactory
Get a logger by class.
getLogger(String) - Static method in class net.spy.memcached.compat.log.LoggerFactory
Get a logger by name.
getLogger() - Method in class net.spy.memcached.compat.SpyObject
Get a Logger instance for this class.
getLogger() - Method in class net.spy.memcached.compat.SpyThread
Get a Logger instance for this class.
getMaxReconnectDelay() - Method in interface net.spy.memcached.ConnectionFactory
Maximum number of milliseconds to wait between reconnect attempts.
getMaxReconnectDelay() - Method in class net.spy.memcached.DefaultConnectionFactory
 
getMaxSize() - Method in class net.spy.memcached.transcoders.BaseSerializingTranscoder
 
getMaxSize() - Method in class net.spy.memcached.transcoders.IntegerTranscoder
 
getMaxSize() - Method in class net.spy.memcached.transcoders.LongTranscoder
 
getMaxSize() - Method in interface net.spy.memcached.transcoders.Transcoder
Get the maximum size of objects handled by this transcoder.
getMessage() - Method in class net.spy.memcached.ops.OperationStatus
Get the message included as part of this status.
getName() - Method in class net.spy.memcached.compat.log.AbstractLogger
Get the name of this logger.
getName() - Method in interface net.spy.memcached.compat.log.Logger
Get the name of this logger.
getNewValue(T) - Method in interface net.spy.memcached.CASMutation
Get the new value to replace the current value.
getNodeLocator() - Method in class net.spy.memcached.MemcachedClient
Get a read-only wrapper around the node locator wrapping this instance.
getNodeLocator() - Method in interface net.spy.memcached.MemcachedClientIF
 
getNodeRepetitions() - Method in class net.spy.memcached.util.DefaultKetamaNodeLocatorConfiguration
Returns the number of discrete hashes that should be defined for each node in the continuum.
getNodeRepetitions() - Method in interface net.spy.memcached.util.KetamaNodeLocatorConfiguration
Returns the number of discrete hashes that should be defined for each node in the continuum.
GetOperation - Interface in net.spy.memcached.ops
Get operation.
GetOperation.Callback - Interface in net.spy.memcached.ops
Operation callback for the get request.
getOperationFactory() - Method in class net.spy.memcached.BinaryConnectionFactory
 
getOperationFactory() - Method in interface net.spy.memcached.ConnectionFactory
Get the operation factory for connections built by this connection factory.
getOperationFactory() - Method in class net.spy.memcached.DefaultConnectionFactory
 
getOperations() - Method in exception net.spy.memcached.internal.CheckedOperationTimeoutException
Get the operation that timed out.
getOperationTimeout() - Method in interface net.spy.memcached.ConnectionFactory
Get the operation timeout used by this connection.
getOperationTimeout() - Method in class net.spy.memcached.DefaultConnectionFactory
 
getOpQueueLen() - Method in class net.spy.memcached.DefaultConnectionFactory
Get the op queue length set at construct time.
getPrimary(String) - Method in class net.spy.memcached.ArrayModNodeLocator
 
getPrimary(String) - Method in class net.spy.memcached.KetamaNodeLocator
 
getPrimary(String) - Method in interface net.spy.memcached.NodeLocator
Get the primary location for the given key.
getRbuf() - Method in interface net.spy.memcached.MemcachedNode
Get the buffer used for reading data from this node.
getRbuf() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
getReadBufSize() - Method in interface net.spy.memcached.ConnectionFactory
 
getReadBufSize() - Method in class net.spy.memcached.DefaultConnectionFactory
 
getReadonlyCopy() - Method in class net.spy.memcached.ArrayModNodeLocator
 
getReadonlyCopy() - Method in class net.spy.memcached.KetamaNodeLocator
 
getReadonlyCopy() - Method in interface net.spy.memcached.NodeLocator
Create a read-only copy of this NodeLocator.
getReconnectCount() - Method in interface net.spy.memcached.MemcachedNode
Get the current reconnect count.
getReconnectCount() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
getResult() - Method in class net.spy.memcached.compat.SyncThread
Get the result from the invocation.
gets(String, Transcoder<T>) - Method in class net.spy.memcached.MemcachedClient
Gets (with CAS support) with a single key.
gets(String) - Method in class net.spy.memcached.MemcachedClient
Gets (with CAS support) with a single key using the default transcoder.
gets(String, Transcoder<T>) - Method in interface net.spy.memcached.MemcachedClientIF
 
gets(String) - Method in interface net.spy.memcached.MemcachedClientIF
 
gets(String, GetsOperation.Callback) - Method in interface net.spy.memcached.OperationFactory
Create a gets operation.
gets(String, GetsOperation.Callback) - Method in class net.spy.memcached.protocol.ascii.AsciiOperationFactory
 
gets(String, GetsOperation.Callback) - Method in class net.spy.memcached.protocol.binary.BinaryOperationFactory
 
getSelectionOps() - Method in interface net.spy.memcached.MemcachedNode
Compute the appropriate selection operations for the channel this MemcachedNode holds to the server.
getSelectionOps() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
getSequence(String) - Method in class net.spy.memcached.ArrayModNodeLocator
 
getSequence(String) - Method in class net.spy.memcached.KetamaNodeLocator
 
getSequence(String) - Method in interface net.spy.memcached.NodeLocator
Get an iterator over the sequence of nodes that make up the backup locations for a given key.
getSk() - Method in interface net.spy.memcached.MemcachedNode
Get the selection key from this node.
getSk() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
getSocketAddress() - Method in interface net.spy.memcached.MemcachedNode
Get the SocketAddress of the server to which this node is connected.
getSocketAddress() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
getSocketAddressForNode(MemcachedNode) - Method in class net.spy.memcached.util.DefaultKetamaNodeLocatorConfiguration
Returns the socket address of a given MemcachedNode.
GetsOperation - Interface in net.spy.memcached.ops
Gets operation (get with CAS identifier support).
GetsOperation.Callback - Interface in net.spy.memcached.ops
Operation callback for the Gets request.
getState() - Method in interface net.spy.memcached.ops.Operation
Get the current state of this operation.
getState() - Method in class net.spy.memcached.protocol.BaseOperationImpl
 
getStats() - Method in class net.spy.memcached.MemcachedClient
Get all of the stats from all of the connections.
getStats(String) - Method in class net.spy.memcached.MemcachedClient
Get a set of stats from all connections.
getStats() - Method in interface net.spy.memcached.MemcachedClientIF
 
getStats(String) - Method in interface net.spy.memcached.MemcachedClientIF
 
getStatusForErrorCode(int, byte[]) - Method in class net.spy.memcached.protocol.binary.OptimizedSetImpl
 
getStoreType() - Method in interface net.spy.memcached.ops.CASOperation
Get the type of storage used by this CASOperation.
getStoreType() - Method in interface net.spy.memcached.ops.ConcatenationOperation
Get the concatenation type for this operation.
getStoreType() - Method in interface net.spy.memcached.ops.StoreOperation
Get the store type used by this operation.
getStoreType() - Method in class net.spy.memcached.protocol.ascii.ConcatenationOperationImpl
 
getThrowable(Object[]) - Method in class net.spy.memcached.compat.log.AbstractLogger
Get the throwable from the last element of this array if it is Throwable, else null.
getTranscoder() - Method in class net.spy.memcached.MemcachedClient
Get the default transcoder that's in use.
getTranscoder() - Method in interface net.spy.memcached.MemcachedClientIF
 
getType() - Method in interface net.spy.memcached.ops.MutatorOperation
Get the mutator type used for this operation.
getType() - Method in exception net.spy.memcached.ops.OperationException
Get the type of error.
getUnavailableServers() - Method in class net.spy.memcached.MemcachedClient
Get the addresses of unavailable servers.
getUnavailableServers() - Method in interface net.spy.memcached.MemcachedClientIF
 
getValue() - Method in class net.spy.memcached.CASValue
Get the object value.
getVersions() - Method in class net.spy.memcached.MemcachedClient
Get the versions of all of the connected memcacheds.
getVersions() - Method in interface net.spy.memcached.MemcachedClientIF
 
getWbuf() - Method in interface net.spy.memcached.MemcachedNode
Get the buffer used for writing data to this node.
getWbuf() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
gotData(String, int, byte[]) - Method in interface net.spy.memcached.ops.GetOperation.Callback
Callback for each result from a get.
gotData(String, int, long, byte[]) - Method in interface net.spy.memcached.ops.GetsOperation.Callback
Callback for each result from a gets.
gotData(String, int, byte[]) - Method in class net.spy.memcached.ops.MultiGetOperationCallback
 
gotData(String, int, long, byte[]) - Method in class net.spy.memcached.ops.MultiGetsOperationCallback
 
gotData(String, int, byte[]) - Method in class net.spy.memcached.protocol.GetCallbackWrapper
 
gotData(String, int, byte[]) - Method in class net.spy.memcached.protocol.ProxyCallback
 
gotStat(String, String) - Method in interface net.spy.memcached.ops.StatsOperation.Callback
Invoked once for every stat returned from the server.

H

handleError(OperationErrorType, String) - Method in class net.spy.memcached.protocol.BaseOperationImpl
 
handleIO() - Method in class net.spy.memcached.MemcachedConnection
MemcachedClient calls this method to handle IO over the connections.
handleRead(ByteBuffer) - Method in interface net.spy.memcached.ops.Operation
Handle a raw data read.
handleRead(ByteBuffer) - Method in class net.spy.memcached.protocol.BaseOperationImpl
 
hasErrored() - Method in interface net.spy.memcached.ops.Operation
True if an error occurred while processing this operation.
hasErrored() - Method in class net.spy.memcached.protocol.BaseOperationImpl
 
hash(String) - Method in enum net.spy.memcached.HashAlgorithm
Compute the hash for the given key.
HashAlgorithm - Enum in net.spy.memcached
Known hashing algorithms for locating a server for a key.
hasReadOp() - Method in interface net.spy.memcached.MemcachedNode
True if an operation is available to read.
hasReadOp() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
hasWriteOp() - Method in interface net.spy.memcached.MemcachedNode
True if an operation is available to write.
hasWriteOp() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 

I

ImmediateFuture - Class in net.spy.memcached.internal
A future that fires immediately.
ImmediateFuture(Boolean) - Constructor for class net.spy.memcached.internal.ImmediateFuture
 
ImmediateFuture(Exception) - Constructor for class net.spy.memcached.internal.ImmediateFuture
 
incr(String, int) - Method in class net.spy.memcached.MemcachedClient
Increment the given key by the given amount.
incr(String, int, long, int) - Method in class net.spy.memcached.MemcachedClient
Increment the given counter, returning the new value.
incr(String, int, long) - Method in class net.spy.memcached.MemcachedClient
Increment the given counter, returning the new value.
incr(String, int) - Method in interface net.spy.memcached.MemcachedClientIF
 
incr(String, int, long, int) - Method in interface net.spy.memcached.MemcachedClientIF
 
incr(String, int, long) - Method in interface net.spy.memcached.MemcachedClientIF
 
info(Object, Throwable) - Method in class net.spy.memcached.compat.log.AbstractLogger
Log a message at info level.
info(String, Object...) - Method in class net.spy.memcached.compat.log.AbstractLogger
Log a formatted message at info level.
info(Object) - Method in class net.spy.memcached.compat.log.AbstractLogger
Log a message at info level.
info(Object, Throwable) - Method in interface net.spy.memcached.compat.log.Logger
Log a message at info level.
info(Object) - Method in interface net.spy.memcached.compat.log.Logger
Log a message at info level.
info(String, Object...) - Method in interface net.spy.memcached.compat.log.Logger
Log a formatted message at info level.
initialize() - Method in interface net.spy.memcached.ops.Operation
Initialize this operation.
initialize() - Method in class net.spy.memcached.protocol.BaseOperationImpl
 
initialize() - Method in class net.spy.memcached.protocol.binary.OptimizedSetImpl
 
initialize() - Method in class net.spy.memcached.protocol.binary.StatsOperationImpl
 
IntegerTranscoder - Class in net.spy.memcached.transcoders
Transcoder that serializes and unserializes longs.
IntegerTranscoder() - Constructor for class net.spy.memcached.transcoders.IntegerTranscoder
 
isActive() - Method in interface net.spy.memcached.MemcachedNode
True if this node is active. i.e.
isActive() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
isCancelled() - Method in class net.spy.memcached.internal.BulkGetFuture
 
isCancelled() - Method in class net.spy.memcached.internal.GetFuture
 
isCancelled() - Method in class net.spy.memcached.internal.ImmediateFuture
 
isCancelled() - Method in class net.spy.memcached.internal.OperationFuture
 
isCancelled() - Method in interface net.spy.memcached.ops.Operation
Has this operation been cancelled?
isCancelled() - Method in class net.spy.memcached.protocol.BaseOperationImpl
 
isDaemon() - Method in interface net.spy.memcached.ConnectionFactory
If true, the IO thread should be a daemon thread.
isDaemon() - Method in class net.spy.memcached.DefaultConnectionFactory
 
isDebugEnabled() - Method in class net.spy.memcached.compat.log.AbstractLogger
True if debug is enabled for this logger.
isDebugEnabled() - Method in class net.spy.memcached.compat.log.DefaultLogger
False.
isDebugEnabled() - Method in class net.spy.memcached.compat.log.Log4JLogger
True if the underlying logger would allow debug messages through.
isDebugEnabled() - Method in interface net.spy.memcached.compat.log.Logger
True if debug is enabled for this logger.
isDebugEnabled() - Method in class net.spy.memcached.compat.log.SunLogger
True if the underlying logger would allow Level.FINE through.
isDone() - Method in class net.spy.memcached.internal.BulkGetFuture
 
isDone() - Method in class net.spy.memcached.internal.GetFuture
 
isDone() - Method in class net.spy.memcached.internal.ImmediateFuture
 
isDone() - Method in class net.spy.memcached.internal.OperationFuture
 
isEmpty() - Method in class net.spy.memcached.BaseCacheMap
 
isInfoEnabled() - Method in class net.spy.memcached.compat.log.AbstractLogger
True if debug is enabled for this logger.
isInfoEnabled() - Method in class net.spy.memcached.compat.log.DefaultLogger
True.
isInfoEnabled() - Method in class net.spy.memcached.compat.log.Log4JLogger
True if the underlying logger would allow info messages through.
isInfoEnabled() - Method in interface net.spy.memcached.compat.log.Logger
True if info is enabled for this logger.
isInfoEnabled() - Method in class net.spy.memcached.compat.log.SunLogger
True if the underlying logger would allow Level.INFO through.
isShutdown() - Method in class net.spy.memcached.transcoders.TranscodeService
Ask whether this service has been shut down.
isSuccess() - Method in class net.spy.memcached.ops.OperationStatus
Does this status indicate success?

K

KetamaConnectionFactory - Class in net.spy.memcached
ConnectionFactory instance that sets up a ketama compatible connection.
KetamaConnectionFactory(int, int) - Constructor for class net.spy.memcached.KetamaConnectionFactory
Create a KetamaConnectionFactory with the given maximum operation queue length, and the given read buffer size.
KetamaConnectionFactory() - Constructor for class net.spy.memcached.KetamaConnectionFactory
Create a KetamaConnectionFactory with the default parameters.
KetamaNodeLocator - Class in net.spy.memcached
This is an implementation of the Ketama consistent hash strategy from last.fm.
KetamaNodeLocator(List<MemcachedNode>, HashAlgorithm) - Constructor for class net.spy.memcached.KetamaNodeLocator
 
KetamaNodeLocator(List<MemcachedNode>, HashAlgorithm, KetamaNodeLocatorConfiguration) - Constructor for class net.spy.memcached.KetamaNodeLocator
 
KetamaNodeLocatorConfiguration - Interface in net.spy.memcached.util
Defines the set of all configuration dependencies required for the KetamaNodeLocator algorithm to run
KeyedOperation - Interface in net.spy.memcached.ops
Operations that contain keys.
keySet() - Method in class net.spy.memcached.BaseCacheMap
 
KeyUtil - Class in net.spy.memcached
Utilities for processing key values.
KeyUtil() - Constructor for class net.spy.memcached.KeyUtil
 

L

Level - Enum in net.spy.memcached.compat.log
Levels for logging.
LinkedOperationQueueFactory - Class in net.spy.memcached.ops
OperationQueueFactory that creates LinkedBlockingQueue (unbounded) operation queues.
LinkedOperationQueueFactory() - Constructor for class net.spy.memcached.ops.LinkedOperationQueueFactory
 
loadData(Iterator<Map.Entry<String, T>>) - Method in class net.spy.memcached.util.CacheLoader
Load data from the given iterator.
loadData(Map<String, T>) - Method in class net.spy.memcached.util.CacheLoader
Load data from the given map.
log(Level, Object) - Method in class net.spy.memcached.compat.log.AbstractLogger
Log a message at the given level.
log(Level, Object, Throwable) - Method in class net.spy.memcached.compat.log.AbstractLogger
Subclasses should implement this method to determine what to do when a client wants to log at a particular level.
log(Level, Object, Throwable) - Method in class net.spy.memcached.compat.log.DefaultLogger
 
log(Level, Object, Throwable) - Method in class net.spy.memcached.compat.log.Log4JLogger
Wrapper around log4j.
log(Level, Object, Throwable) - Method in interface net.spy.memcached.compat.log.Logger
Log a message at the specified level.
log(Level, Object) - Method in interface net.spy.memcached.compat.log.Logger
Log a message at the specified level.
log(Level, Object, Throwable) - Method in class net.spy.memcached.compat.log.SunLogger
Wrapper around sun logger.
Log4JLogger - Class in net.spy.memcached.compat.log
Logging implementation using log4j.
Log4JLogger(String) - Constructor for class net.spy.memcached.compat.log.Log4JLogger
Get an instance of Log4JLogger.
Logger - Interface in net.spy.memcached.compat.log
Abstract mechanism for dealing with logs from various objects.
LoggerFactory - Class in net.spy.memcached.compat.log
Factory to get logger instances.
LongTranscoder - Class in net.spy.memcached.transcoders
Transcoder that serializes and unserializes longs.
LongTranscoder() - Constructor for class net.spy.memcached.transcoders.LongTranscoder
 

M

main(String[]) - Static method in class net.spy.memcached.BuildInfo
Print out the build properties.
MAX_KEY_LENGTH - Static variable in interface net.spy.memcached.MemcachedClientIF
Maximum supported key length.
MAX_SIZE - Static variable in class net.spy.memcached.CachedData
Maximum data size allowed by memcached.
MemcachedClient - Class in net.spy.memcached
Client to a memcached server.
MemcachedClient(InetSocketAddress...) - Constructor for class net.spy.memcached.MemcachedClient
Get a memcache client operating on the specified memcached locations.
MemcachedClient(List<InetSocketAddress>) - Constructor for class net.spy.memcached.MemcachedClient
Get a memcache client over the specified memcached locations.
MemcachedClient(ConnectionFactory, List<InetSocketAddress>) - Constructor for class net.spy.memcached.MemcachedClient
Get a memcache client over the specified memcached locations.
MemcachedClientIF - Interface in net.spy.memcached
This interface is provided as a helper for testing clients of the MemcachedClient.
MemcachedConnection - Class in net.spy.memcached
Connection to a cluster of memcached servers.
MemcachedConnection(int, ConnectionFactory, List<InetSocketAddress>, Collection<ConnectionObserver>, FailureMode, OperationFactory) - Constructor for class net.spy.memcached.MemcachedConnection
Construct a memcached connection.
MemcachedNode - Interface in net.spy.memcached
Interface defining a connection to a memcached server.
MultiGetOperationCallback - Class in net.spy.memcached.ops
MultiOperationCallback for get operations.
MultiGetOperationCallback(OperationCallback, int) - Constructor for class net.spy.memcached.ops.MultiGetOperationCallback
 
MultiGetsOperationCallback - Class in net.spy.memcached.ops
MultiOperationCallback for get operations.
MultiGetsOperationCallback(OperationCallback, int) - Constructor for class net.spy.memcached.ops.MultiGetsOperationCallback
 
MultiOperationCallback - Class in net.spy.memcached.ops
An operation callback that will capture receivedStatus and complete invocations and dispatch to a single callback.
MultiOperationCallback(OperationCallback, int) - Constructor for class net.spy.memcached.ops.MultiOperationCallback
Get a MultiOperationCallback over the given callback for the specified number of replicates.
mutate(Mutator, String, int, long, int, OperationCallback) - Method in interface net.spy.memcached.OperationFactory
Create a mutator operation.
mutate(Mutator, String, int, long, int, OperationCallback) - Method in class net.spy.memcached.protocol.ascii.AsciiOperationFactory
 
mutate(Mutator, String, int, long, int, OperationCallback) - Method in class net.spy.memcached.protocol.binary.BinaryOperationFactory
 
Mutator - Enum in net.spy.memcached.ops
Type of mutation to perform.
MutatorOperation - Interface in net.spy.memcached.ops
incr and decr operations.

N

net.spy.memcached - package net.spy.memcached
Memcached client and transformation utils
net.spy.memcached.compat - package net.spy.memcached.compat
spy.jar compatibility classes
net.spy.memcached.compat.log - package net.spy.memcached.compat.log
Logging Abstractions
net.spy.memcached.internal - package net.spy.memcached.internal
Internal utilities.
net.spy.memcached.ops - package net.spy.memcached.ops
Fundamental protocol operation interfaces
net.spy.memcached.protocol - package net.spy.memcached.protocol
Base classes for protocol abstractions.
net.spy.memcached.protocol.ascii - package net.spy.memcached.protocol.ascii
Low-level operations for the memcached ascii protocol
net.spy.memcached.protocol.binary - package net.spy.memcached.protocol.binary
Low-level operations for the memcached binary protocol
net.spy.memcached.transcoders - package net.spy.memcached.transcoders
Classes that deal with data encoding
net.spy.memcached.util - package net.spy.memcached.util
Cache Utilities.
newOp(MemcachedNode, CountDownLatch) - Method in interface net.spy.memcached.BroadcastOpFactory
Construct a new operation for delivery to the given node.
NodeLocator - Interface in net.spy.memcached
Interface for locating a node by hash value.
noop(OperationCallback) - Method in interface net.spy.memcached.OperationFactory
Create a NOOP operation.
noop(OperationCallback) - Method in class net.spy.memcached.protocol.ascii.AsciiOperationFactory
 
noop(OperationCallback) - Method in class net.spy.memcached.protocol.binary.BinaryOperationFactory
 
NoopOperation - Interface in net.spy.memcached.ops
The NOOP Operation.
numCallbacks() - Method in class net.spy.memcached.protocol.ProxyCallback
 
numKeys() - Method in class net.spy.memcached.protocol.ProxyCallback
 

O

opaqueIsValid() - Method in class net.spy.memcached.protocol.binary.OptimizedSetImpl
 
Operation - Interface in net.spy.memcached.ops
Base interface for all operations.
OperationCallback - Interface in net.spy.memcached.ops
Callback that's invoked with the response of an operation.
OperationErrorType - Enum in net.spy.memcached.ops
Error classification.
OperationException - Exception in net.spy.memcached.ops
Exceptions thrown when protocol errors occur.
OperationException() - Constructor for exception net.spy.memcached.ops.OperationException
General exception (no message).
OperationException(OperationErrorType, String) - Constructor for exception net.spy.memcached.ops.OperationException
Exception with a message.
OperationFactory - Interface in net.spy.memcached
Factory that builds operations for protocol handlers.
OperationFuture<T> - Class in net.spy.memcached.internal
Managed future for operations.
OperationFuture(CountDownLatch, long) - Constructor for class net.spy.memcached.internal.OperationFuture
 
OperationFuture(CountDownLatch, AtomicReference<T>, long) - Constructor for class net.spy.memcached.internal.OperationFuture
 
OperationQueueFactory - Interface in net.spy.memcached.ops
Factory used for creating operation queues.
OperationState - Enum in net.spy.memcached.ops
State of this operation.
OperationStatus - Class in net.spy.memcached.ops
Status indicator.
OperationStatus(boolean, String) - Constructor for class net.spy.memcached.ops.OperationStatus
 
OperationTimeoutException - Exception in net.spy.memcached
Thrown by MemcachedClient when any internal operations timeout.
OperationTimeoutException(String) - Constructor for exception net.spy.memcached.OperationTimeoutException
 
OperationTimeoutException(String, Throwable) - Constructor for exception net.spy.memcached.OperationTimeoutException
 
optimize() - Method in class net.spy.memcached.protocol.ascii.AsciiMemcachedNodeImpl
 
optimize() - Method in class net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl
 
optimize() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
optimizedOp - Variable in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
OptimizedSetImpl - Class in net.spy.memcached.protocol.binary
 
OptimizedSetImpl(CASOperation) - Constructor for class net.spy.memcached.protocol.binary.OptimizedSetImpl
Construct an optimized get starting with the given get operation.
originalCallback - Variable in class net.spy.memcached.ops.MultiOperationCallback
 

P

prepend(long, String, Object) - Method in class net.spy.memcached.MemcachedClient
Prepend to an existing value in the cache.
prepend(long, String, T, Transcoder<T>) - Method in class net.spy.memcached.MemcachedClient
Prepend to an existing value in the cache.
prepend(long, String, Object) - Method in interface net.spy.memcached.MemcachedClientIF
 
prepend(long, String, T, Transcoder<T>) - Method in interface net.spy.memcached.MemcachedClientIF
 
ProxyCallback - Class in net.spy.memcached.protocol
Proxy callback used for dispatching callbacks over optimized gets.
ProxyCallback() - Constructor for class net.spy.memcached.protocol.ProxyCallback
 
push(String, T) - Method in class net.spy.memcached.util.CacheLoader
Push a value into the cache.
put(String, V) - Method in class net.spy.memcached.BaseCacheMap
 
putAll(Map<? extends String, ? extends V>) - Method in class net.spy.memcached.BaseCacheMap
 

R

readFromBuffer(ByteBuffer) - Method in interface net.spy.memcached.ops.Operation
Read data from the given byte buffer and dispatch to the appropriate read mechanism.
readFromBuffer(ByteBuffer) - Method in class net.spy.memcached.protocol.BaseOperationImpl
 
receivedStatus(OperationStatus) - Method in class net.spy.memcached.ops.MultiOperationCallback
 
receivedStatus(OperationStatus) - Method in interface net.spy.memcached.ops.OperationCallback
Method invoked with the status when the operation is complete.
receivedStatus(OperationStatus) - Method in class net.spy.memcached.protocol.GetCallbackWrapper
 
receivedStatus(OperationStatus) - Method in class net.spy.memcached.protocol.ProxyCallback
 
reconnecting() - Method in interface net.spy.memcached.MemcachedNode
Notify this node that it will be reconnecting.
reconnecting() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
registerChannel(SocketChannel, SelectionKey) - Method in interface net.spy.memcached.MemcachedNode
Register a channel with this node.
registerChannel(SocketChannel, SelectionKey) - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
remove(Object) - Method in class net.spy.memcached.BaseCacheMap
 
removeCurrentReadOp() - Method in interface net.spy.memcached.MemcachedNode
Remove the operation at the top of the queue that is requiring input.
removeCurrentReadOp() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
removeCurrentWriteOp() - Method in interface net.spy.memcached.MemcachedNode
Remove the operation at the top of the queue that has information available to write.
removeCurrentWriteOp() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
removeObserver(ConnectionObserver) - Method in class net.spy.memcached.MemcachedClient
Remove a connection observer.
removeObserver(ConnectionObserver) - Method in interface net.spy.memcached.MemcachedClientIF
 
removeObserver(ConnectionObserver) - Method in class net.spy.memcached.MemcachedConnection
Remove a connection observer.
replace(String, int, T, Transcoder<T>) - Method in class net.spy.memcached.MemcachedClient
Replace an object with the given value iff there is already a value for the given key.
replace(String, int, Object) - Method in class net.spy.memcached.MemcachedClient
Replace an object with the given value (transcoded with the default transcoder) iff there is already a value for the given key.
replace(String, int, T, Transcoder<T>) - Method in interface net.spy.memcached.MemcachedClientIF
 
replace(String, int, Object) - Method in interface net.spy.memcached.MemcachedClientIF
 
run() - Method in class net.spy.memcached.compat.SyncThread
Wait for the barrier, invoke the callable and capture the result or an exception.
run() - Method in class net.spy.memcached.MemcachedClient
Infinitely loop processing IO.

S

serialize(Object) - Method in class net.spy.memcached.transcoders.BaseSerializingTranscoder
Get the bytes representing the given serialized object.
SERIALIZED - Static variable in class net.spy.memcached.transcoders.WhalinV1Transcoder
 
SerializingTranscoder - Class in net.spy.memcached.transcoders
Transcoder that serializes and compresses objects.
SerializingTranscoder() - Constructor for class net.spy.memcached.transcoders.SerializingTranscoder
Get a serializing transcoder with the default max data size.
SerializingTranscoder(int) - Constructor for class net.spy.memcached.transcoders.SerializingTranscoder
Get a serializing transcoder that specifies the max data size.
set(Future<T>) - Method in class net.spy.memcached.internal.GetFuture
 
set(T) - Method in class net.spy.memcached.internal.OperationFuture
 
set(String, int, T, Transcoder<T>) - Method in class net.spy.memcached.MemcachedClient
Set an object in the cache regardless of any existing value.
set(String, int, Object) - Method in class net.spy.memcached.MemcachedClient
Set an object in the cache (using the default transcoder) regardless of any existing value.
set(String, int, T, Transcoder<T>) - Method in interface net.spy.memcached.MemcachedClientIF
 
set(String, int, Object) - Method in interface net.spy.memcached.MemcachedClientIF
 
setBuffer(ByteBuffer) - Method in class net.spy.memcached.protocol.BaseOperationImpl
Set the write buffer for this operation.
setCallback(OperationCallback) - Method in class net.spy.memcached.protocol.BaseOperationImpl
Set the callback for this instance.
setChannel(SocketChannel) - Method in interface net.spy.memcached.MemcachedNode
Set the SocketChannel this node uses.
setChannel(SocketChannel) - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
setCharset(String) - Method in class net.spy.memcached.transcoders.BaseSerializingTranscoder
Set the character set for string value transcoding (defaults to UTF-8).
setCompressionThreshold(int) - Method in class net.spy.memcached.transcoders.BaseSerializingTranscoder
Set the compression threshold to the given number of bytes.
setDaemon(boolean) - Method in class net.spy.memcached.ConnectionFactoryBuilder
Set the daemon state of the IO thread (defaults to true).
setFailureMode(FailureMode) - Method in class net.spy.memcached.ConnectionFactoryBuilder
Set the failure mode.
setHandlingNode(MemcachedNode) - Method in interface net.spy.memcached.ops.Operation
Set a reference to the node that will be/is handling this operation.
setHandlingNode(MemcachedNode) - Method in class net.spy.memcached.protocol.BaseOperationImpl
 
setHashAlg(HashAlgorithm) - Method in class net.spy.memcached.ConnectionFactoryBuilder
Set the hash algorithm.
setInitialObservers(Collection<ConnectionObserver>) - Method in class net.spy.memcached.ConnectionFactoryBuilder
Set the initial connection observers (will observe initial connection).
setLocatorType(ConnectionFactoryBuilder.Locator) - Method in class net.spy.memcached.ConnectionFactoryBuilder
Set the locator type.
setMaxReconnectDelay(long) - Method in class net.spy.memcached.ConnectionFactoryBuilder
Set the maximum reconnect delay.
setOperation(Operation) - Method in class net.spy.memcached.internal.GetFuture
 
setOperation(Operation) - Method in class net.spy.memcached.internal.OperationFuture
 
setOpFact(OperationFactory) - Method in class net.spy.memcached.ConnectionFactoryBuilder
Set the operation factory.
setOpQueueFactory(OperationQueueFactory) - Method in class net.spy.memcached.ConnectionFactoryBuilder
Set the operation queue factory.
setOpTimeout(long) - Method in class net.spy.memcached.ConnectionFactoryBuilder
Set the default operation timeout in milliseconds.
setProtocol(ConnectionFactoryBuilder.Protocol) - Method in class net.spy.memcached.ConnectionFactoryBuilder
Convenience method to specify the protocol to use.
setReadBufferSize(int) - Method in class net.spy.memcached.ConnectionFactoryBuilder
Set the read buffer size.
setReadOpQueueFactory(OperationQueueFactory) - Method in class net.spy.memcached.ConnectionFactoryBuilder
Set the read queue factory.
setShouldOptimize(boolean) - Method in class net.spy.memcached.ConnectionFactoryBuilder
Set to false if the default operation optimization is not desirable.
setSk(SelectionKey) - Method in interface net.spy.memcached.MemcachedNode
Set the selection key for this node.
setSk(SelectionKey) - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
setTranscoder(Transcoder<Object>) - Method in class net.spy.memcached.ConnectionFactoryBuilder
Set the default transcoder.
setupResend() - Method in interface net.spy.memcached.MemcachedNode
Clear the queue of currently processing operations by either cancelling them or setting them up to be reapplied after a reconnect.
setupResend() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
setUseNagleAlgorithm(boolean) - Method in class net.spy.memcached.ConnectionFactoryBuilder
Set to true if you'd like to enable the Nagle algorithm.
setWriteOpQueueFactory(OperationQueueFactory) - Method in class net.spy.memcached.ConnectionFactoryBuilder
Set the write queue factory.
shouldOptimize() - Method in interface net.spy.memcached.ConnectionFactory
If true, low-level optimization is in effect.
shouldOptimize() - Method in class net.spy.memcached.DefaultConnectionFactory
 
shutdown() - Method in class net.spy.memcached.MemcachedClient
Shut down immediately.
shutdown(long, TimeUnit) - Method in class net.spy.memcached.MemcachedClient
Shut down this client gracefully.
shutdown() - Method in interface net.spy.memcached.MemcachedClientIF
 
shutdown(long, TimeUnit) - Method in interface net.spy.memcached.MemcachedClientIF
 
shutdown() - Method in class net.spy.memcached.MemcachedConnection
Shut down all of the connections.
shutdown() - Method in class net.spy.memcached.transcoders.TranscodeService
Shut down the pool.
size() - Method in class net.spy.memcached.BaseCacheMap
 
size() - Method in class net.spy.memcached.protocol.binary.OptimizedSetImpl
 
socketAddresses - Variable in class net.spy.memcached.util.DefaultKetamaNodeLocatorConfiguration
 
SPECIAL_BOOLEAN - Static variable in class net.spy.memcached.transcoders.WhalinV1Transcoder
 
SPECIAL_BYTE - Static variable in class net.spy.memcached.transcoders.WhalinV1Transcoder
 
SPECIAL_CHARACTER - Static variable in class net.spy.memcached.transcoders.WhalinV1Transcoder
 
SPECIAL_DATE - Static variable in class net.spy.memcached.transcoders.WhalinV1Transcoder
 
SPECIAL_DOUBLE - Static variable in class net.spy.memcached.transcoders.WhalinV1Transcoder
 
SPECIAL_FLOAT - Static variable in class net.spy.memcached.transcoders.WhalinV1Transcoder
 
SPECIAL_INTEGER - Static variable in class net.spy.memcached.transcoders.WhalinV1Transcoder
 
SPECIAL_LONG - Static variable in class net.spy.memcached.transcoders.WhalinV1Transcoder
 
SPECIAL_SHORT - Static variable in class net.spy.memcached.transcoders.WhalinV1Transcoder
 
SPECIAL_STRING - Static variable in class net.spy.memcached.transcoders.WhalinV1Transcoder
 
SPECIAL_STRINGBUFFER - Static variable in class net.spy.memcached.transcoders.WhalinV1Transcoder
 
SPECIAL_STRINGBUILDER - Static variable in class net.spy.memcached.transcoders.WhalinV1Transcoder
 
SpyObject - Class in net.spy.memcached.compat
Superclass for all Spy Objects.
SpyObject() - Constructor for class net.spy.memcached.compat.SpyObject
Get an instance of SpyObject.
SpyThread - Class in net.spy.memcached.compat
Superclass for all Spy Threads.
SpyThread() - Constructor for class net.spy.memcached.compat.SpyThread
Get an instance of SpyThread.
SpyThread(String) - Constructor for class net.spy.memcached.compat.SpyThread
Get an instance of SpyThread with a name.
stats(String, StatsOperation.Callback) - Method in interface net.spy.memcached.OperationFactory
Get a new StatsOperation.
stats(String, StatsOperation.Callback) - Method in class net.spy.memcached.protocol.ascii.AsciiOperationFactory
 
stats(String, StatsOperation.Callback) - Method in class net.spy.memcached.protocol.binary.BinaryOperationFactory
 
StatsOperation - Interface in net.spy.memcached.ops
Stats fetching operation.
StatsOperation.Callback - Interface in net.spy.memcached.ops
Callback for stats operation.
StatsOperationImpl - Class in net.spy.memcached.protocol.binary
 
StatsOperationImpl(String, StatsOperation.Callback) - Constructor for class net.spy.memcached.protocol.binary.StatsOperationImpl
 
store(StoreType, String, int, int, byte[], OperationCallback) - Method in interface net.spy.memcached.OperationFactory
Create a store operation.
store(StoreType, String, int, int, byte[], OperationCallback) - Method in class net.spy.memcached.protocol.ascii.AsciiOperationFactory
 
store(StoreType, String, int, int, byte[], OperationCallback) - Method in class net.spy.memcached.protocol.binary.BinaryOperationFactory
 
StoreOperation - Interface in net.spy.memcached.ops
Operation that represents object storage.
storeResult(String, boolean) - Method in interface net.spy.memcached.util.CacheLoader.StorageListener
Normal path response for a set.
StoreType - Enum in net.spy.memcached.ops
The type of storage operation to perform.
SunLogger - Class in net.spy.memcached.compat.log
Logging implementation using the sun logger.
SunLogger(String) - Constructor for class net.spy.memcached.compat.log.SunLogger
Get an instance of SunLogger.
SyncThread<T> - Class in net.spy.memcached.compat
Thread that invokes a callable multiple times concurrently.
SyncThread(CyclicBarrier, Callable<T>) - Constructor for class net.spy.memcached.compat.SyncThread
Get a SyncThread that will call the given callable when the given barrier allows it past.

T

TCPMemcachedNodeImpl - Class in net.spy.memcached.protocol
Represents a node with the memcached cluster, along with buffering and operation queues.
TCPMemcachedNodeImpl(SocketAddress, SocketChannel, int, BlockingQueue<Operation>, BlockingQueue<Operation>, BlockingQueue<Operation>) - Constructor for class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
toString() - Method in class net.spy.memcached.BuildInfo
String me.
toString() - Method in class net.spy.memcached.CachedData
 
toString() - Method in class net.spy.memcached.CASValue
 
toString() - Method in enum net.spy.memcached.compat.log.Level
Get a string representation of this level.
toString() - Method in class net.spy.memcached.MemcachedConnection
 
toString() - Method in exception net.spy.memcached.ops.OperationException
 
toString() - Method in class net.spy.memcached.ops.OperationStatus
 
toString() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
Transcoder<T> - Interface in net.spy.memcached.transcoders
Transcoder is an interface for classes that convert between byte arrays and objects for storage in the cache.
TranscoderUtils - Class in net.spy.memcached.transcoders
Utility class for transcoding Java types.
TranscoderUtils(boolean) - Constructor for class net.spy.memcached.transcoders.TranscoderUtils
Get an instance of TranscoderUtils.
TranscodeService - Class in net.spy.memcached.transcoders
Asynchronous transcoder.
TranscodeService() - Constructor for class net.spy.memcached.transcoders.TranscodeService
 
transitionState(OperationState) - Method in class net.spy.memcached.protocol.BaseOperationImpl
Transition the state of this operation to the given state.
transitionWriteItem() - Method in interface net.spy.memcached.MemcachedNode
Transition the current write item into a read state.
transitionWriteItem() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 

U

useNagleAlgorithm() - Method in interface net.spy.memcached.ConnectionFactory
If true, the nagle algorithm will be used on connected sockets.
useNagleAlgorithm() - Method in class net.spy.memcached.DefaultConnectionFactory
 

V

valueOf(String) - Static method in enum net.spy.memcached.CASResponse
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.spy.memcached.compat.log.Level
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.spy.memcached.ConnectionFactoryBuilder.Locator
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.spy.memcached.ConnectionFactoryBuilder.Protocol
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.spy.memcached.FailureMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.spy.memcached.HashAlgorithm
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.spy.memcached.ops.ConcatenationType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.spy.memcached.ops.Mutator
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.spy.memcached.ops.OperationErrorType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.spy.memcached.ops.OperationState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.spy.memcached.ops.StoreType
Returns the enum constant of this type with the specified name.
values() - Method in class net.spy.memcached.BaseCacheMap
 
values() - Static method in enum net.spy.memcached.CASResponse
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.spy.memcached.compat.log.Level
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.spy.memcached.ConnectionFactoryBuilder.Locator
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.spy.memcached.ConnectionFactoryBuilder.Protocol
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.spy.memcached.FailureMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.spy.memcached.HashAlgorithm
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.spy.memcached.ops.ConcatenationType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.spy.memcached.ops.Mutator
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.spy.memcached.ops.OperationErrorType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.spy.memcached.ops.OperationState
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.spy.memcached.ops.StoreType
Returns an array containing the constants of this enum type, in the order they are declared.
version(OperationCallback) - Method in interface net.spy.memcached.OperationFactory
Create a new version operation.
version(OperationCallback) - Method in class net.spy.memcached.protocol.ascii.AsciiOperationFactory
 
version(OperationCallback) - Method in class net.spy.memcached.protocol.binary.BinaryOperationFactory
 
VersionOperation - Interface in net.spy.memcached.ops
Version operation.

W

waitForQueues(long, TimeUnit) - Method in class net.spy.memcached.MemcachedClient
Wait for the queues to die down.
waitForQueues(long, TimeUnit) - Method in interface net.spy.memcached.MemcachedClientIF
 
warn(Object, Throwable) - Method in class net.spy.memcached.compat.log.AbstractLogger
Log a message at warning level.
warn(String, Object...) - Method in class net.spy.memcached.compat.log.AbstractLogger
Log a formatted message at debug level.
warn(Object) - Method in class net.spy.memcached.compat.log.AbstractLogger
Log a message at warning level.
warn(Object, Throwable) - Method in interface net.spy.memcached.compat.log.Logger
Log a message at warning level.
warn(Object) - Method in interface net.spy.memcached.compat.log.Logger
Log a message at warning level.
warn(String, Object...) - Method in interface net.spy.memcached.compat.log.Logger
Log a formatted message at debug level.
wasCancelled() - Method in class net.spy.memcached.protocol.BaseOperationImpl
This is called on each subclass whenever an operation was cancelled.
WhalinTranscoder - Class in net.spy.memcached.transcoders
Transcoder that provides compatibility with Greg Whalin's memcached client.
WhalinTranscoder() - Constructor for class net.spy.memcached.transcoders.WhalinTranscoder
 
WhalinV1Transcoder - Class in net.spy.memcached.transcoders
Handles old whalin (tested with v1.6) encoding: data type is in the first byte of the value.
WhalinV1Transcoder() - Constructor for class net.spy.memcached.transcoders.WhalinV1Transcoder
 
writeComplete() - Method in interface net.spy.memcached.ops.Operation
Invoked after having written all of the bytes from the supplied output buffer.
writeComplete() - Method in class net.spy.memcached.protocol.BaseOperationImpl
 
writeQ - Variable in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
writeSome() - Method in interface net.spy.memcached.MemcachedNode
Write some bytes and return the number of bytes written.
writeSome() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 

A B C D E F G H I K L M N O P R S T U V W