Class MutatorOperationImpl
java.lang.Object
net.spy.memcached.compat.SpyObject
net.spy.memcached.protocol.BaseOperationImpl
net.spy.memcached.protocol.ascii.OperationImpl
net.spy.memcached.protocol.ascii.MutatorOperationImpl
- All Implemented Interfaces:
KeyedOperation, MutatorOperation, Operation
Operation for mutating integers inside of memcached.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longprivate final Stringprivate final Mutatorprivate static final OperationStatusstatic final intFields inherited from class OperationImpl
CRLFFields inherited from class BaseOperationImpl
callback, CANCELLED, notMyVbucketNodes, TIMED_OUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetBy()Get the amount we're mutating by.longGet the default value (for when there's no value to mutate).intGet the expiration to set in case of a new entry.getKeys()Get the keys requested in this GetOperation.getType()Get the mutator type used for this operation.voidhandleLine(String line) voidInitialize this operation.toString()protected voidThis is called on each subclass whenever an operation was cancelled.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, 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
public static final int OVERHEAD- See Also:
-
NOT_FOUND
-
mutator
-
key
-
amount
private final long amount
-
-
Constructor Details
-
MutatorOperationImpl
-
-
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
-
wasCancelled
protected void wasCancelled()Description copied from class:BaseOperationImplThis is called on each subclass whenever an operation was cancelled.- Overrides:
wasCancelledin classBaseOperationImpl
-
getKeys
Description copied from interface:KeyedOperationGet the keys requested in this GetOperation.- Specified by:
getKeysin interfaceKeyedOperation
-
getBy
public long getBy()Description copied from interface:MutatorOperationGet the amount we're mutating by.- Specified by:
getByin interfaceMutatorOperation
-
getDefault
public long getDefault()Description copied from interface:MutatorOperationGet the default value (for when there's no value to mutate).- Specified by:
getDefaultin interfaceMutatorOperation
-
getExpiration
public int getExpiration()Description copied from interface:MutatorOperationGet the expiration to set in case of a new entry.- Specified by:
getExpirationin interfaceMutatorOperation
-
getType
Description copied from interface:MutatorOperationGet the mutator type used for this operation.- Specified by:
getTypein interfaceMutatorOperation
-
toString
-