public class ResponseMessage extends BaseMessage
cas, datatype, extralength, HEADER_LENGTH, keylength, magic, opaque, opcode, totalbody, vbucket
Constructor and Description |
---|
ResponseMessage(byte[] b)
Creates a ResponseMessage from binary data.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getBytes()
Creates a ByteBuffer representation of the message.
|
long |
getCheckpoint()
Gets the checkpoint of the vbucket.
|
long |
getEnginePrivate()
Gets the value of the engine private field.
|
List<TapResponseFlag> |
getFlags()
Gets the value of the flags field.
|
long |
getItemExpiry()
Gets the value of the item expiry field.
|
int |
getItemFlags()
Gets the value of the items flag field.
|
String |
getKey()
Gets the value of the key field.
|
protected int |
getReserved1()
Gets the value of the reserved1 field.
|
protected int |
getReserved2()
Gets the value of the reserved2 field.
|
protected int |
getReserved3()
Gets the value of the reserved3 field.
|
byte[] |
getRevID()
Gets the value of the revid field.
|
int |
getTTL()
Gets the value of the time to live field.
|
byte[] |
getValue()
Gets the value of the value field.
|
int |
getVBucketState()
Gets the state of the vbucket.
|
String |
toString() |
decodeInt, decodeIntHostOrder, decodeLong, decodeShort, getCas, getDatatype, getExtralength, getKeylength, getMagic, getMessageLength, getOpaque, getOpcode, getTotalbody, getVbucket, setCas, setDatatype, setExtralength, setMagic, setOpaque, setOpcode, setTotalbody, setVbucket
public ResponseMessage(byte[] b)
b
- The binary data sent from the tap stream server.public long getEnginePrivate()
public List<TapResponseFlag> getFlags()
public int getTTL()
protected int getReserved1()
protected int getReserved2()
protected int getReserved3()
public int getVBucketState()
public long getCheckpoint()
public int getItemFlags()
public long getItemExpiry()
public String getKey()
public byte[] getValue()
public byte[] getRevID()
public ByteBuffer getBytes()
BaseMessage
getBytes
in class BaseMessage
Copyright © 2015. All rights reserved.