public abstract class TapOperationImpl extends OperationImpl implements TapOperation
TapOperation.CallbackDUMMY_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| Modifier | Constructor and Description |
|---|---|
protected |
TapOperationImpl(OperationCallback cb) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
initialize()
Initialize this operation.
|
void |
readFromBuffer(java.nio.ByteBuffer data)
Read from the incoming
ByteBuffer. |
decodePayload, finishedPayload, getErrorMsg, getStatusForErrorCode, opaqueIsValid, prepareBuffer, resetInput, toStringaddClone, 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, waitstreamClosedaddClone, cancel, getBuffer, getCallback, getCloneCount, getErrorMsg, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setCloneCount, setHandlingNode, timeOut, writeComplete, writingprotected TapOperationImpl(OperationCallback cb)
public abstract void initialize()
Operationinitialize in interface Operationinitialize in class BaseOperationImplpublic void readFromBuffer(java.nio.ByteBuffer data)
throws java.io.IOException
OperationImplByteBuffer.
Reading from the buffer is done in stages, depending on how much data
can be read at once. First, the header is read and then parsed (24
bytes, indicated by OperationImpl.MIN_RECV_PACKET). Then, the payload is read
(if one is available for this operation and can be loaded fully).readFromBuffer in interface OperationreadFromBuffer in class OperationImpldata - the buffer to read from.java.io.IOException - if an error happened during parsing/reading.Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.