Class CASOperationImpl
java.lang.Object
net.spy.memcached.compat.SpyObject
net.spy.memcached.protocol.BaseOperationImpl
net.spy.memcached.protocol.ascii.OperationImpl
net.spy.memcached.protocol.ascii.CASOperationImpl
- All Implemented Interfaces:
CASOperation, KeyedOperation, Operation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longprivate final byte[]private static final OperationStatusprivate final intprivate final intprivate final Stringprivate static final OperationStatusprivate static final intprivate static final OperationStatusFields inherited from class OperationImpl
CRLFFields inherited from class BaseOperationImpl
callback, CANCELLED, notMyVbucketNodes, TIMED_OUT -
Constructor Summary
ConstructorsConstructorDescriptionCASOperationImpl(String k, long c, int f, int e, byte[] d, OperationCallback cb) -
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.getKeys()Get the keys requested in this GetOperation.Get the type of storage used by this CASOperation.voidhandleLine(String line) voidInitialize this operation.toString()Methods inherited from class OperationImpl
classifyError, getErrorMsg, getReadType, matchStatus, readFromBuffer, setArguments, setReadTypeMethods inherited from class BaseOperationImpl
addClone, cancel, getBuffer, getCallback, getCloneCount, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleError, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setBuffer, setCallback, setCloneCount, setHandlingNode, timeOut, transitionState, wasCancelled, writeComplete, writingMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Operation
addClone, cancel, getBuffer, getCallback, getCloneCount, getErrorMsg, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, readFromBuffer, setCloneCount, setHandlingNode, timeOut, writeComplete, writing
-
Field Details
-
OVERHEAD
private static final int OVERHEAD- See Also:
-
STORED
-
NOT_FOUND
-
EXISTS
-
key
-
casValue
private final long casValue -
flags
private final int flags -
exp
private final int exp -
data
private final byte[] data
-
-
Constructor Details
-
CASOperationImpl
-
-
Method Details
-
handleLine
- Specified by:
handleLinein classOperationImpl
-
initialize
public void initialize()Description copied from interface:OperationInitialize this operation. This is used to prepare output byte buffers and stuff.- Specified by:
initializein interfaceOperation- Specified by:
initializein classBaseOperationImpl
-
getKeys
Description copied from interface:KeyedOperationGet the keys requested in this GetOperation.- Specified by:
getKeysin interfaceKeyedOperation
-
getData
public byte[] getData()Description copied from interface:CASOperationGet the bytes to be set during this operation.Note, this returns an exact reference to the bytes and the data must not be modified.
- Specified by:
getDatain interfaceCASOperation
-
getCasValue
public long getCasValue()Description copied from interface:CASOperationGet the CAS value advised for this operation.- Specified by:
getCasValuein interfaceCASOperation
-
getExpiration
public int getExpiration()Description copied from interface:CASOperationGet the expiration to be set for this operation.- Specified by:
getExpirationin interfaceCASOperation
-
getFlags
public int getFlags()Description copied from interface:CASOperationGet the flags to be set for this operation.- Specified by:
getFlagsin interfaceCASOperation
-
getStoreType
Description copied from interface:CASOperationGet the type of storage used by this CASOperation.- Specified by:
getStoreTypein interfaceCASOperation
-
toString
-