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

A

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
 
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
 
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.
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, 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
 
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

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() - Constructor for class net.spy.memcached.transcoders.BaseSerializingTranscoder
 
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.
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.

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.
CachedData(int, byte[]) - Constructor for class net.spy.memcached.CachedData
Get a CachedData instance for the given flags and byte array.
callback - Variable in class net.spy.memcached.protocol.BaseOperationImpl
 
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, 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(String, long, int, byte[], OperationCallback) - Method in interface net.spy.memcached.OperationFactory
Create a CAS operation.
cas(String, long, int, byte[], OperationCallback) - Method in class net.spy.memcached.protocol.ascii.AsciiOperationFactory
 
cas(String, long, 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(MemcachedClient, Transcoder<T>, int) - Constructor for class net.spy.memcached.CASMutator
Construct a CASMutator that uses the given client.
CASMutator(MemcachedClient, 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
 
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
 
ConnectionFactory - Interface in net.spy.memcached
Factory for creating instances of MemcachedConnection.
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
 
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

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(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) - 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) - Method in interface net.spy.memcached.MemcachedClientIF
 
DEFAULT_COMPRESSION_THRESHOLD - Static variable in class net.spy.memcached.transcoders.BaseSerializingTranscoder
Default compression threshold value.
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.
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.

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.

F

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.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(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
 
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.
getChannel() - Method in interface net.spy.memcached.MemcachedNode
Get the SocketChannel for this connection.
getChannel() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
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.
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
 
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.
getHashAlg() - Method in class net.spy.memcached.DefaultConnectionFactory
Get the hash algorithm set at construct time.
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.
getKeys() - Method in interface net.spy.memcached.ops.GetOperation
Get the keys requested in this GetOperation.
getKeys() - Method in interface net.spy.memcached.ops.GetsOperation
Get the keys requested in this GetsOperation.
getMessage() - Method in class net.spy.memcached.ops.OperationStatus
Get the message included as part of this status.
getNewValue(T) - Method in interface net.spy.memcached.CASMutation
Get the new value to replace the current value.
getOp - Variable in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
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
 
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 class net.spy.memcached.DefaultConnectionFactory
Get the read buffer size set at construct time.
getReconnectCount() - Method in interface net.spy.memcached.MemcachedNode
Get the current reconnect count.
getReconnectCount() - Method in class net.spy.memcached.protocol.TCPMemcachedNodeImpl
 
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
 
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
 
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 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.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

incr(String, int) - Method in class net.spy.memcached.MemcachedClient
Increment the given key by the given amount.
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) - Method in interface net.spy.memcached.MemcachedClientIF
 
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.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 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
 
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
 
KeyUtil - Class in net.spy.memcached
Utilities for processing key values.
KeyUtil() - Constructor for class net.spy.memcached.KeyUtil
 

L

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>) - 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.
MutatatorOperation - Interface in net.spy.memcached.ops
incr and decr operations.
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.

N

net.spy.memcached - package net.spy.memcached
Memcached client and transformation utils
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
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

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.
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
 

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
 

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 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
 
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