|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.memcached.compat.SpyObject
net.spy.memcached.tapmessage.BaseMessage
net.spy.memcached.tapmessage.RequestMessage
public class RequestMessage
A tap request message that is used to start tap streams, perform sasl authentication, and maintain the health of tap streams.
| Field Summary |
|---|
| Fields inherited from class net.spy.memcached.tapmessage.BaseMessage |
|---|
cas, datatype, extralength, HEADER_LENGTH, keylength, magic, opaque, opcode, totalbody, vbucket |
| Constructor Summary | |
|---|---|
RequestMessage()
Create a tap request message. |
|
| Method Summary | |
|---|---|
java.nio.ByteBuffer |
getBytes()
Encodes the message into binary. |
java.util.List<TapRequestFlag> |
getFlags()
Returns the flags for this message. |
void |
setBackfill(long date)
Stream all keys inserted into the server after a given date. |
void |
setFlags(TapRequestFlag f)
Sets the flags for the tap stream. |
void |
setName(java.lang.String n)
Sets a name for this tap stream. |
void |
setvBucketCheckpoints(java.util.Map<java.lang.Short,java.lang.Long> vbchkpnts)
Sets a map of vbucket checkpoints. |
void |
setVbucketlist(short[] vbs)
Sets a list of vbuckets to stream keys from. |
| Methods inherited from class net.spy.memcached.tapmessage.BaseMessage |
|---|
decodeInt, decodeIntHostOrder, decodeLong, decodeShort, getCas, getDatatype, getExtralength, getKeylength, getMagic, getMessageLength, getOpaque, getOpcode, getTotalbody, getVbucket, setCas, setDatatype, setExtralength, 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 |
|---|
public RequestMessage()
| Method Detail |
|---|
public void setFlags(TapRequestFlag f)
f - The flags to use for this tap stream.public java.util.List<TapRequestFlag> getFlags()
public void setBackfill(long date)
date - - The date to stream keys from. Null to stream all keys.public void setVbucketlist(short[] vbs)
vbs - - A list of vbuckets.public void setvBucketCheckpoints(java.util.Map<java.lang.Short,java.lang.Long> vbchkpnts)
vbchkpnts - - A map of vbucket checkpoint identifierspublic void setName(java.lang.String n)
n - The name for the tap stream.public java.nio.ByteBuffer getBytes()
getBytes in class BaseMessage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||