Class SingleKeyOperationImpl
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
- All Implemented Interfaces:
KeyedOperation, Operation, VBucketAware
- Direct Known Subclasses:
ConcatenationOperationImpl, DeleteOperationImpl, GetAndTouchOperationImpl, GetlOperationImpl, GetOperationImpl, GetsOperationImpl, KeyStatsOperationImpl, MutatorOperationImpl, ObserveOperationImpl, ReplicaGetOperationImpl, ReplicaGetsOperationImpl, StoreOperationImpl, TouchOperationImpl, UnlockOperationImpl
Binary operations that contain a single key and are VBucket aware operations
should extend this class.
-
Field Summary
FieldsFields 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
ConstructorsModifierConstructorDescriptionprotectedSingleKeyOperationImpl(byte c, int o, String k, OperationCallback cb) -
Method Summary
Modifier and TypeMethodDescriptionvoidgetKeys()Get the keys requested in this GetOperation.shortgetVBucket(String k) voidvoidsetVBucket(String k, short vb) toString()Methods 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, initialize, 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, initialize, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, readFromBuffer, setCloneCount, setHandlingNode, timeOut, writeComplete, writing
-
Field Details
-
key
-
-
Constructor Details
-
SingleKeyOperationImpl
-
-
Method Details
-
getKeys
Description copied from interface:KeyedOperationGet the keys requested in this GetOperation.- Specified by:
getKeysin interfaceKeyedOperation
-
getNotMyVbucketNodes
- Specified by:
getNotMyVbucketNodesin interfaceVBucketAware
-
addNotMyVbucketNode
- Specified by:
addNotMyVbucketNodein interfaceVBucketAware
-
setNotMyVbucketNodes
- Specified by:
setNotMyVbucketNodesin interfaceVBucketAware
-
setVBucket
- Specified by:
setVBucketin interfaceVBucketAware
-
getVBucket
- Specified by:
getVBucketin interfaceVBucketAware
-
toString
- Overrides:
toStringin classOperationImpl
-