Package net.spy.memcached.ops
Interface CASOperation
- All Superinterfaces:
KeyedOperation,Operation
Operation that represents compare-and-swap.
-
Method Summary
Modifier and TypeMethodDescriptionlongGet the CAS value advised for this operation.byte[]getData()Get the bytes to be set during this operation.intGet the expiration to be set for this operation.intgetFlags()Get the flags to be set for this operation.Get the type of storage used by this CASOperation.Methods inherited from interface net.spy.memcached.ops.KeyedOperation
getKeysMethods inherited from interface net.spy.memcached.ops.Operation
addClone, cancel, getBuffer, getCallback, getCloneCount, getErrorMsg, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleRead, hasErrored, initialize, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, readFromBuffer, setCloneCount, setHandlingNode, timeOut, writeComplete, writing
-
Method Details
-
getStoreType
StoreType getStoreType()Get the type of storage used by this CASOperation. -
getCasValue
long getCasValue()Get the CAS value advised for this operation. -
getFlags
int getFlags()Get the flags to be set for this operation. -
getExpiration
int getExpiration()Get the expiration to be set for this operation. -
getData
byte[] getData()Get the bytes to be set during this operation.Note, this returns an exact reference to the bytes and the data must not be modified.
-