Package net.spy.memcached.ops
Interface CASOperation
-
- All Superinterfaces:
KeyedOperation
,Operation
- All Known Implementing Classes:
CASOperationImpl
,StoreOperationImpl
public interface CASOperation extends KeyedOperation
Operation that represents compare-and-swap.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getCasValue()
Get the CAS value advised for this operation.byte[]
getData()
Get the bytes to be set during this operation.int
getExpiration()
Get the expiration to be set for this operation.int
getFlags()
Get the flags to be set for this operation.StoreType
getStoreType()
Get the type of storage used by this CASOperation.-
Methods inherited from interface net.spy.memcached.ops.KeyedOperation
getKeys
-
Methods 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 Detail
-
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.
-
-