public class MultiGetOperationImpl extends OperationImpl implements GetOperation
GetOperation.Callback| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Short> |
vbmap |
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, vbucketcallback, CANCELLED, notMyVbucketNodes, TIMED_OUT| Constructor and Description |
|---|
MultiGetOperationImpl(Collection<String> k,
OperationCallback cb) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
addKey(String k)
Add a key (and return its new opaque value).
|
void |
addNotMyVbucketNode(MemcachedNode node) |
protected void |
finishedPayload(byte[] pl) |
Collection<String> |
getKeys()
Get the keys requested in this GetOperation.
|
Collection<MemcachedNode> |
getNotMyVbucketNodes() |
List<String> |
getRetryKeys()
Returns the keys to redistribute.
|
short |
getVBucket(String k) |
void |
initialize()
Initialize this operation.
|
protected boolean |
opaqueIsValid()
Validate an opaque value from the header.
|
void |
setNotMyVbucketNodes(Collection<MemcachedNode> nodes) |
void |
setVBucket(String k,
short vb) |
String |
toString() |
decodePayload, getErrorMsg, getStatusForErrorCode, prepareBuffer, readFromBuffer, resetInputaddClone, cancel, getBuffer, getCallback, getCloneCount, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleError, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setBuffer, setCallback, setCloneCount, setHandlingNode, timeOut, transitionState, wasCancelled, writeComplete, writingclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetKeysaddClone, cancel, getBuffer, getCallback, getCloneCount, getErrorMsg, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, readFromBuffer, setCloneCount, setHandlingNode, timeOut, writeComplete, writingpublic MultiGetOperationImpl(Collection<String> k, OperationCallback cb)
protected int addKey(String k)
public void initialize()
Operationinitialize in interface Operationinitialize in class BaseOperationImplprotected void finishedPayload(byte[] pl)
throws IOException
finishedPayload in class OperationImplIOExceptionprotected boolean opaqueIsValid()
OperationImplopaqueIsValid in class OperationImplpublic List<String> getRetryKeys()
public Collection<String> getKeys()
KeyedOperationgetKeys in interface KeyedOperationpublic Collection<MemcachedNode> getNotMyVbucketNodes()
getNotMyVbucketNodes in interface VBucketAwarepublic void addNotMyVbucketNode(MemcachedNode node)
addNotMyVbucketNode in interface VBucketAwarepublic void setNotMyVbucketNodes(Collection<MemcachedNode> nodes)
setNotMyVbucketNodes in interface VBucketAwarepublic void setVBucket(String k, short vb)
setVBucket in interface VBucketAwarepublic short getVBucket(String k)
getVBucket in interface VBucketAwarepublic String toString()
toString in class OperationImplCopyright © 2025. All rights reserved.