Class ConcatenationOperationImpl
java.lang.Object
net.spy.memcached.compat.SpyObject
net.spy.memcached.protocol.BaseOperationImpl
net.spy.memcached.protocol.binary.OperationImpl
net.spy.memcached.protocol.binary.SingleKeyOperationImpl
net.spy.memcached.protocol.binary.ConcatenationOperationImpl
- All Implemented Interfaces:
ConcatenationOperation, KeyedOperation, Operation, VBucketAware
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final longprivate final ConcatenationTypeprivate final byte[]private static final intFields inherited from class SingleKeyOperationImpl
keyFields inherited from class OperationImpl
DUMMY_OPCODE, EMPTY_BYTES, ERR_2BIG, ERR_BUSY, ERR_DELTA_BADVAL, ERR_EXISTS, ERR_INTERNAL, ERR_INVAL, ERR_NO_MEM, ERR_NOT_FOUND, ERR_NOT_MY_VBUCKET, ERR_NOT_STORED, ERR_NOT_SUPPORTED, ERR_TEMP_FAIL, ERR_UNKNOWN_COMMAND, errorCode, keyLen, MIN_RECV_PACKET, opaque, REQ_MAGIC, RES_MAGIC, responseCas, responseCmd, responseOpaque, STATUS_OK, SUCCESS, vbucketFields inherited from class BaseOperationImpl
callback, CANCELLED, notMyVbucketNodes, TIMED_OUT -
Constructor Summary
ConstructorsConstructorDescriptionConcatenationOperationImpl(ConcatenationType t, String k, byte[] d, long c, OperationCallback cb) -
Method Summary
Methods inherited from class SingleKeyOperationImpl
addNotMyVbucketNode, getKeys, getNotMyVbucketNodes, getVBucket, setNotMyVbucketNodes, setVBucketMethods inherited from class OperationImpl
decodeByte, decodeInt, decodeLong, decodePayload, decodeShort, decodeUnsignedInt, finishedPayload, generateOpaque, getErrorMsg, getStatusForErrorCode, opaqueIsValid, prepareBuffer, readFromBuffer, resetInputMethods 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 KeyedOperation
getKeysMethods 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
-
APPEND
private static final int APPEND- See Also:
-
PREPEND
private static final int PREPEND- See Also:
-
cas
private final long cas -
catType
-
data
private final byte[] data
-
-
Constructor Details
-
ConcatenationOperationImpl
public ConcatenationOperationImpl(ConcatenationType t, String k, byte[] d, long c, OperationCallback cb)
-
-
Method Details
-
cmdMap
-
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
-
getCasValue
public long getCasValue()Description copied from interface:ConcatenationOperationGet the CAS value sent with this operation.- Specified by:
getCasValuein interfaceConcatenationOperation
-
getData
public byte[] getData()Description copied from interface:ConcatenationOperationGet 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 interfaceConcatenationOperation
-
getStoreType
Description copied from interface:ConcatenationOperationGet the concatenation type for this operation.- Specified by:
getStoreTypein interfaceConcatenationOperation
-
toString
- Overrides:
toStringin classSingleKeyOperationImpl
-