Package net.spy.memcached.protocol.ascii
Class BaseStoreOperationImpl
java.lang.Object
net.spy.memcached.compat.SpyObject
net.spy.memcached.protocol.BaseOperationImpl
net.spy.memcached.protocol.ascii.OperationImpl
net.spy.memcached.protocol.ascii.BaseStoreOperationImpl
- All Implemented Interfaces:
Operation
- Direct Known Subclasses:
ConcatenationOperationImpl
,StoreOperationImpl
Base class for ascii store operations (add, set, replace, append, prepend).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final byte[]
protected final int
protected final int
protected final String
private static final int
private static final OperationStatus
protected final String
Fields inherited from class net.spy.memcached.protocol.ascii.OperationImpl
CRLF
Fields inherited from class net.spy.memcached.protocol.BaseOperationImpl
callback, CANCELLED, notMyVbucketNodes, TIMED_OUT
-
Constructor Summary
ConstructorsConstructorDescriptionBaseStoreOperationImpl
(String t, String k, int f, int e, byte[] d, OperationCallback cb) -
Method Summary
Methods inherited from class net.spy.memcached.protocol.ascii.OperationImpl
classifyError, getErrorMsg, getReadType, matchStatus, readFromBuffer, setArguments, setReadType
Methods inherited from class net.spy.memcached.protocol.BaseOperationImpl
addClone, cancel, getBuffer, getCallback, getCloneCount, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleError, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setBuffer, setCallback, setCloneCount, setHandlingNode, timeOut, transitionState, writeComplete, writing
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.spy.memcached.ops.Operation
addClone, cancel, getBuffer, getCallback, getCloneCount, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setCloneCount, setHandlingNode, timeOut, writeComplete, writing
-
Field Details
-
OVERHEAD
private static final int OVERHEAD- See Also:
-
STORED
-
type
-
key
-
flags
protected final int flags -
exp
protected final int exp -
data
protected final byte[] data
-
-
Constructor Details
-
BaseStoreOperationImpl
-
-
Method Details
-
handleLine
- Specified by:
handleLine
in classOperationImpl
-
initialize
public void initialize()Description copied from interface:Operation
Initialize this operation. This is used to prepare output byte buffers and stuff.- Specified by:
initialize
in interfaceOperation
- Specified by:
initialize
in classBaseOperationImpl
-
wasCancelled
protected void wasCancelled()Description copied from class:BaseOperationImpl
This is called on each subclass whenever an operation was cancelled.- Overrides:
wasCancelled
in classBaseOperationImpl
-
getKeys
-
getFlags
public int getFlags() -
getExpiration
public int getExpiration() -
getData
public byte[] getData() -
toString
-