public class GetAndTouchOperationImpl extends BaseOperationImpl implements GetAndTouchOperation
GetAndTouchOperation.Callback| Modifier and Type | Field and Description |
|---|---|
protected static byte[] |
CRLF |
callback, CANCELLED, notMyVbucketNodes, TIMED_OUT| Constructor and Description |
|---|
GetAndTouchOperationImpl(java.lang.String c,
int e,
GetAndTouchOperation.Callback cb,
java.lang.String k) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<java.lang.String> |
getKeys()
Get the keys this GetOperation is looking for.
|
protected net.spy.memcached.protocol.ascii.OperationReadType |
getReadType() |
void |
handleLine(java.lang.String line) |
void |
handleRead(java.nio.ByteBuffer b)
Handle a raw data read.
|
void |
initialize()
Initialize this operation.
|
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.
|
java.lang.String |
toString() |
protected void |
wasCancelled()
This is called on each subclass whenever an operation was cancelled.
|
cancel, getBuffer, getCallback, getException, getHandlingNode, getState, handleError, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setBuffer, setCallback, setHandlingNode, timeOut, transitionState, writeComplete, writingclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetKeyscancel, getBuffer, getCallback, getException, getHandlingNode, getState, handleRead, hasErrored, initialize, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, readFromBuffer, setHandlingNode, timeOut, writeComplete, writingpublic GetAndTouchOperationImpl(java.lang.String c,
int e,
GetAndTouchOperation.Callback cb,
java.lang.String k)
public final java.util.Collection<java.lang.String> getKeys()
public final void handleLine(java.lang.String line)
public final void handleRead(java.nio.ByteBuffer b)
OperationhandleRead in interface OperationhandleRead in class BaseOperationImplpublic final void initialize()
Operationinitialize in interface Operationinitialize in class BaseOperationImplprotected final void wasCancelled()
BaseOperationImplwasCancelled in class BaseOperationImplpublic java.lang.String toString()
toString in class java.lang.Objectprotected 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.IOExceptionCopyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.