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 |
---|---|
java.nio.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.
|
java.util.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.
|
java.lang.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.
|
java.lang.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 java.util.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 java.lang.String getKey()
public byte[] getValue()
public byte[] getRevID()
public java.nio.ByteBuffer getBytes()
BaseMessage
getBytes
in class BaseMessage
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.