Class BinaryDeleteCommand
- java.lang.Object
-
- net.rubyeye.xmemcached.command.Command
-
- net.rubyeye.xmemcached.command.binary.BaseBinaryCommand
-
- net.rubyeye.xmemcached.command.binary.BinaryDeleteCommand
-
- All Implemented Interfaces:
WriteMessage,StoreCommand
public class BinaryDeleteCommand extends BaseBinaryCommand
Binary delete command
-
-
Field Summary
-
Fields inherited from class net.rubyeye.xmemcached.command.binary.BaseBinaryCommand
cas, decodeStatus, DEFAULT_VBUCKET_ID, expTime, EXTRAS_LENGTH, opaque, opCode, responseExtrasLength, responseKeyLength, responseStatus, responseTotalBodyLength, value, vbucketId
-
Fields inherited from class net.rubyeye.xmemcached.command.Command
cancel, commandType, exception, ioBuffer, key, keyBytes, latch, mergeCount, noreply, REQUEST_MAGIC_NUMBER, RESPONSE_MAGIC_NUMBER, result, status, transcoder, writeFuture
-
-
Constructor Summary
Constructors Constructor Description BinaryDeleteCommand(java.lang.String key, byte[] keyBytes, long cas, CommandType cmdType, java.util.concurrent.CountDownLatch latch, boolean noreply)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfillExtras(CachedData data)protected voidfillValue(CachedData data)protected longgetCasValue()protected bytegetExtrasLength()protected intgetValueLength(CachedData data)protected voidreadHeader(java.nio.ByteBuffer buffer)optimistic,if no error,goto done-
Methods inherited from class net.rubyeye.xmemcached.command.binary.BaseBinaryCommand
decode, encode, fillKey, finish, getCas, getExpTime, getKeyLength, getOpaque, getOpCode, getResponseStatus, getTranscoder, getValue, readCAS, readExtras, readKey, readOpaque, readOpCode, readStatus, readValue, setCas, setExpTime, setOpaque, setOpCode, setResponseStatus, setTranscoder, setValue
-
Methods inherited from class net.rubyeye.xmemcached.command.Command
cancel, countDownLatch, decodeError, decodeError, decodeError, decodeError, getCommandType, getCopiedMergeCount, getException, getIoBuffer, getKey, getKeyBytes, getLatch, getMergeCount, getMessage, getResult, getStatus, getWriteBuffer, getWriteFuture, isAdded, isCancel, isNoreply, isWriting, setAdded, setCommandType, setException, setIoBuffer, setKey, setKeyBytes, setLatch, setMergeCount, setNoreply, setResult, setStatus, setWriteBuffer, setWriteFuture, toString, writing
-
-
-
-
Constructor Detail
-
BinaryDeleteCommand
public BinaryDeleteCommand(java.lang.String key, byte[] keyBytes, long cas, CommandType cmdType, java.util.concurrent.CountDownLatch latch, boolean noreply)
-
-
Method Detail
-
readHeader
protected void readHeader(java.nio.ByteBuffer buffer)
optimistic,if no error,goto done- Overrides:
readHeaderin classBaseBinaryCommand
-
getCasValue
protected long getCasValue()
- Overrides:
getCasValuein classBaseBinaryCommand
-
fillExtras
protected void fillExtras(CachedData data)
- Overrides:
fillExtrasin classBaseBinaryCommand
-
getExtrasLength
protected byte getExtrasLength()
- Overrides:
getExtrasLengthin classBaseBinaryCommand
-
getValueLength
protected int getValueLength(CachedData data)
- Overrides:
getValueLengthin classBaseBinaryCommand
-
fillValue
protected void fillValue(CachedData data)
- Overrides:
fillValuein classBaseBinaryCommand
-
-