public class GetAndTouchOperationImpl extends BaseGetOpImpl implements GetAndTouchOperation
GetAndTouchOperation.Callback| Modifier and Type | Field and Description |
|---|---|
protected static byte[] |
CRLF |
expcallback, CANCELLED, notMyVbucketNodes, TIMED_OUT| Constructor and Description |
|---|
GetAndTouchOperationImpl(java.util.Collection<java.lang.String> k,
int e,
GetAndTouchOperation.Callback cb) |
GetAndTouchOperationImpl(java.lang.String k,
int e,
GetAndTouchOperation.Callback cb) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
beforeKeyBytes() |
byte[] |
getErrorMsg()
Returns the raw bytes of the error message content.
|
int |
getExpiration()
Get the expiration to set in case of a new entry.
|
protected net.spy.memcached.protocol.ascii.OperationReadType |
getReadType() |
protected OperationStatus |
matchStatus(java.lang.String line,
OperationStatus... statii)
Match the status line provided against one of the given OperationStatus
objects.
|
void |
readFromBuffer(java.nio.ByteBuffer data)
Read data from the given byte buffer and dispatch to the appropriate read
mechanism.
|
protected void |
setArguments(java.nio.ByteBuffer bb,
java.lang.Object... args)
Set some arguments for an operation into the given byte buffer.
|
protected void |
setReadType(net.spy.memcached.protocol.ascii.OperationReadType to)
Set the read type of this operation.
|
afterKeyBytes, afterKeyBytesSize, getKeys, handleLine, handleRead, initialize, toString, wasCancelledaddClone, cancel, getBuffer, getCallback, getCloneCount, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleError, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setBuffer, setCallback, setCloneCount, setHandlingNode, timeOut, transitionState, writeComplete, writingclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetKeysaddClone, cancel, getBuffer, getCallback, getCloneCount, getErrorMsg, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleRead, hasErrored, initialize, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, readFromBuffer, setCloneCount, setHandlingNode, timeOut, writeComplete, writingpublic GetAndTouchOperationImpl(java.lang.String k,
int e,
GetAndTouchOperation.Callback cb)
public GetAndTouchOperationImpl(java.util.Collection<java.lang.String> k,
int e,
GetAndTouchOperation.Callback cb)
public int getExpiration()
GetAndTouchOperationgetExpiration in interface GetAndTouchOperationprotected byte[] beforeKeyBytes()
beforeKeyBytes in class BaseGetOpImplprotected final OperationStatus matchStatus(java.lang.String line, OperationStatus... statii)
line - the current linestatii - several status objectsprotected final net.spy.memcached.protocol.ascii.OperationReadType getReadType()
protected final void setReadType(net.spy.memcached.protocol.ascii.OperationReadType to)
protected final void setArguments(java.nio.ByteBuffer bb,
java.lang.Object... args)
public void readFromBuffer(java.nio.ByteBuffer data)
throws java.io.IOException
OperationreadFromBuffer in interface OperationreadFromBuffer in class BaseOperationImpljava.io.IOExceptionpublic byte[] getErrorMsg()
OperationgetErrorMsg in interface OperationCopyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.