Class BinaryVersionCommand
java.lang.Object
net.rubyeye.xmemcached.command.Command
net.rubyeye.xmemcached.command.binary.BaseBinaryCommand
net.rubyeye.xmemcached.command.binary.BinaryVersionCommand
- All Implemented Interfaces:
WriteMessage, ServerAddressAware, StoreCommand
Version command for binary protocol
-
Field Summary
FieldsFields inherited from class BaseBinaryCommand
cas, decodeStatus, DEFAULT_VBUCKET_ID, expTime, EXTRAS_LENGTH, opaque, opCode, responseExtrasLength, responseKeyLength, responseStatus, responseTotalBodyLength, value, vbucketIdFields inherited from class Command
cancel, commandType, exception, ioBuffer, key, keyBytes, latch, mergeCount, noreply, REQUEST_MAGIC_NUMBER, RESPONSE_MAGIC_NUMBER, result, status, transcoder, writeFutureFields inherited from interface ServerAddressAware
VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfillExtras(CachedData data) protected voidfillKey()protected voidfillValue(CachedData data) protected byteprotected shortfinal InetSocketAddressprotected intgetValueLength(CachedData data) protected booleanreadValue(ByteBuffer buffer, int bodyLength, int keyLength, int extrasLength) final voidsetServer(InetSocketAddress server) Methods inherited from class BaseBinaryCommand
decode, encode, finish, getCas, getCasValue, getExpTime, getOpaque, getOpCode, getResponseStatus, getTranscoder, getValue, readCAS, readExtras, readHeader, readKey, readOpaque, readOpCode, readStatus, setCas, setExpTime, setOpaque, setOpCode, setResponseStatus, setTranscoder, setValueMethods inherited from class 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
-
Field Details
-
server
-
-
Constructor Details
-
BinaryVersionCommand
-
-
Method Details
-
getServer
- Specified by:
getServerin interfaceServerAddressAware
-
setServer
- Specified by:
setServerin interfaceServerAddressAware
-
readValue
- Overrides:
readValuein classBaseBinaryCommand
-
fillExtras
- Overrides:
fillExtrasin classBaseBinaryCommand
-
fillValue
- Overrides:
fillValuein classBaseBinaryCommand
-
getExtrasLength
protected byte getExtrasLength()- Overrides:
getExtrasLengthin classBaseBinaryCommand
-
fillKey
protected void fillKey()- Overrides:
fillKeyin classBaseBinaryCommand
-
getKeyLength
protected short getKeyLength()- Overrides:
getKeyLengthin classBaseBinaryCommand
-
getValueLength
- Overrides:
getValueLengthin classBaseBinaryCommand
-