public class RequestMessage extends BaseMessage
cas, datatype, extralength, HEADER_LENGTH, keylength, magic, opaque, opcode, totalbody, vbucket
Constructor and Description |
---|
RequestMessage()
Create a tap request message.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getBytes()
Encodes the message into binary.
|
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(String n)
Sets a name for this tap stream.
|
void |
setvBucketCheckpoints(Map<Short,Long> vbchkpnts)
Sets a map of vbucket checkpoints.
|
void |
setVbucketlist(short[] vbs)
Sets a list of vbuckets to stream keys from.
|
decodeInt, decodeIntHostOrder, decodeLong, decodeShort, getCas, getDatatype, getExtralength, getKeylength, getMagic, getMessageLength, getOpaque, getOpcode, getTotalbody, getVbucket, setCas, setDatatype, setExtralength, setMagic, setOpaque, setOpcode, setTotalbody, setVbucket
public RequestMessage()
public void setFlags(TapRequestFlag f)
f
- The flags to use for this tap stream.public 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(Map<Short,Long> vbchkpnts)
vbchkpnts
- - A map of vbucket checkpoint identifierspublic void setName(String n)
n
- The name for the tap stream.public ByteBuffer getBytes()
getBytes
in class BaseMessage
Copyright © 2023. All rights reserved.