Class BaseGetOpImpl
java.lang.Object
net.spy.memcached.compat.SpyObject
net.spy.memcached.protocol.BaseOperationImpl
net.spy.memcached.protocol.ascii.OperationImpl
net.spy.memcached.protocol.ascii.BaseGetOpImpl
- All Implemented Interfaces:
Operation
- Direct Known Subclasses:
GetAndTouchOperationImpl, GetlOperationImpl, GetOperationImpl, GetsOperationImpl
Base class for get and gets handlers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate final Stringprivate intprivate Stringprivate byte[]private static final OperationStatusprotected final intprivate final byte[]private booleanprivate final Collection<String> private static final OperationStatusprivate byteprivate static final OperationStatusprivate intprivate static final byte[]Fields inherited from class OperationImpl
CRLFFields inherited from class BaseOperationImpl
callback, CANCELLED, notMyVbucketNodes, TIMED_OUT -
Constructor Summary
ConstructorsConstructorDescriptionBaseGetOpImpl(String c, int e, OperationCallback cb, String k) BaseGetOpImpl(String c, OperationCallback cb, Collection<String> k) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected intfinal Collection<String> getKeys()Get the keys this GetOperation is looking for.final voidhandleLine(String line) final voidHandle a raw data read.final voidInitialize this operation.toString()protected final 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, 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, getException, getHandlingNode, getState, getWriteCompleteTimestamp, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setCloneCount, setHandlingNode, timeOut, writeComplete, writing
-
Field Details
-
END
-
NOT_FOUND
-
LOCK_ERROR
-
RN_BYTES
private static final byte[] RN_BYTES -
cmd
-
keys
-
currentKey
-
exp
protected final int exp -
expBytes
private final byte[] expBytes -
casValue
private long casValue -
currentFlags
private int currentFlags -
data
private byte[] data -
readOffset
private int readOffset -
lookingFor
private byte lookingFor -
hasValue
private boolean hasValue
-
-
Constructor Details
-
BaseGetOpImpl
-
BaseGetOpImpl
-
-
Method Details
-
getKeys
Get the keys this GetOperation is looking for. -
handleLine
- Specified by:
handleLinein classOperationImpl
-
handleRead
Description copied from interface:OperationHandle a raw data read.- Specified by:
handleReadin interfaceOperation- Overrides:
handleReadin classBaseOperationImpl
-
initialize
public final 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
-
afterKeyBytesSize
protected int afterKeyBytesSize() -
afterKeyBytes
-
wasCancelled
protected final void wasCancelled()Description copied from class:BaseOperationImplThis is called on each subclass whenever an operation was cancelled.- Overrides:
wasCancelledin classBaseOperationImpl
-
toString
-