net.spy.memcached.tapmessage
Class ResponseMessage

java.lang.Object
  extended by net.spy.memcached.compat.SpyObject
      extended by net.spy.memcached.tapmessage.BaseMessage
          extended by net.spy.memcached.tapmessage.ResponseMessage

public class ResponseMessage
extends BaseMessage

A representation of a tap stream message sent from a tap stream server.


Field Summary
 
Fields inherited from class net.spy.memcached.tapmessage.BaseMessage
CAS_FIELD_LENGTH, CAS_INDEX, DATA_TYPE_FIELD_LENGTH, DATA_TYPE_INDEX, EXTRA_LENGTH_FIELD_LENGTH, EXTRA_LENGTH_INDEX, HEADER_LENGTH, KEY_LENGTH_FIELD_LENGTH, KEY_LENGTH_INDEX, MAGIC_FIELD_LENGTH, MAGIC_INDEX, mbytes, OPAQUE_FIELD_LENGTH, OPAQUE_INDEX, OPCODE_FIELD_LENGTH, OPCODE_INDEX, TOTAL_BODY_FIELD_LENGTH, TOTAL_BODY_INDEX, VBUCKET_FIELD_LENGTH, VBUCKET_INDEX
 
Constructor Summary
ResponseMessage(byte[] buffer)
          Creates a ResponseMessage from binary data.
 
Method Summary
 long getEnginePrivate()
          Gets the value of the engine private field if the field exists in the message.
 int getFlags()
          Gets the value of the flags field if the field exists in the message.
 long getItemExpiry()
          Gets the value of the item expiry field if the field exists in the message.
 int getItemFlags()
          Gets the value of the items flag field if the field exists in the message.
 String getKey()
          Gets the value of the key field if the field exists in the message.
 int getReserved1()
          Gets the value of the reserved1 field if the field exists in the message.
 int getReserved2()
          Gets the value of the reserved2 field if the field exists in the message.
 int getReserved3()
          Gets the value of the reserved3 field if the field exists in the message.
 int getTTL()
          Gets the value of the time to live field if the field exists in the message.
 byte[] getValue()
          Gets the value of the value field if the field exists in the message.
 
Methods inherited from class net.spy.memcached.tapmessage.BaseMessage
getBytes, getCas, getDatatype, getExtralength, getKeylength, getMagic, getMessageLength, getOpaque, getOpcode, getTotalbody, getVbucket, setCas, setDatatype, setExtralength, setKeylength, setMagic, setOpaque, setOpcode, setTotalbody, setVbucket
 
Methods inherited from class net.spy.memcached.compat.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseMessage

public ResponseMessage(byte[] buffer)
Creates a ResponseMessage from binary data.

Parameters:
buffer - The binary data sent from the tap stream server.
Method Detail

getEnginePrivate

public long getEnginePrivate()
Gets the value of the engine private field if the field exists in the message.

Returns:
The engine private data.

getFlags

public int getFlags()
Gets the value of the flags field if the field exists in the message.

Returns:
The flags data.

getTTL

public int getTTL()
Gets the value of the time to live field if the field exists in the message.

Returns:
The time to live value;

getReserved1

public int getReserved1()
Gets the value of the reserved1 field if the field exists in the message.

Returns:
The reserved1 data.

getReserved2

public int getReserved2()
Gets the value of the reserved2 field if the field exists in the message.

Returns:
The reserved2 data.

getReserved3

public int getReserved3()
Gets the value of the reserved3 field if the field exists in the message.

Returns:
The reserved3 data.

getItemFlags

public int getItemFlags()
Gets the value of the items flag field if the field exists in the message.

Returns:
The items flag data.

getItemExpiry

public long getItemExpiry()
Gets the value of the item expiry field if the field exists in the message.

Returns:
The item expiry data.

getKey

public String getKey()
Gets the value of the key field if the field exists in the message.

Returns:
The key data.

getValue

public byte[] getValue()
Gets the value of the value field if the field exists in the message.

Returns:
The value data.