public class KafkaBrokerMessage extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static byte |
INVALID_MAGIC |
static int |
NO_SEQUENCE |
| 构造器和说明 |
|---|
KafkaBrokerMessage() |
| 限定符和类型 | 方法和说明 |
|---|---|
short |
getAttribute() |
int |
getBaseSequence() |
int |
getCrc() |
short |
getFlag() |
Map<byte[],byte[]> |
getHeader() |
byte[] |
getKey() |
byte |
getMagic() |
long |
getOffset() |
short |
getProducerEpoch() |
long |
getProducerId() |
int |
getSize() |
long |
getTimestamp() |
byte[] |
getValue() |
boolean |
isBatch() |
boolean |
isTransaction() |
void |
setAttribute(short attribute) |
void |
setBaseSequence(int baseSequence) |
void |
setBatch(boolean batch) |
void |
setCrc(int crc) |
void |
setFlag(short flag) |
void |
setHeader(Map<byte[],byte[]> header) |
void |
setKey(byte[] key) |
void |
setMagic(byte magic) |
void |
setOffset(long offset) |
void |
setProducerEpoch(short producerEpoch) |
void |
setProducerId(long producerId) |
void |
setSize(int size) |
void |
setTimestamp(long timestamp) |
void |
setTransaction(boolean transaction) |
void |
setValue(byte[] value) |
public static final byte INVALID_MAGIC
public static final int NO_SEQUENCE
public void setSize(int size)
public int getSize()
public byte getMagic()
public void setMagic(byte magic)
public int getCrc()
public void setCrc(int crc)
public short getAttribute()
public void setAttribute(short attribute)
public long getTimestamp()
public void setTimestamp(long timestamp)
public byte[] getKey()
public void setKey(byte[] key)
public byte[] getValue()
public void setValue(byte[] value)
public long getOffset()
public void setOffset(long offset)
public void setBatch(boolean batch)
public boolean isBatch()
public void setFlag(short flag)
public short getFlag()
public void setHeader(Map<byte[],byte[]> header)
public Map<byte[],byte[]> getHeader()
public boolean isTransaction()
public void setTransaction(boolean transaction)
public long getProducerId()
public void setProducerId(long producerId)
public int getBaseSequence()
public void setBaseSequence(int baseSequence)
public short getProducerEpoch()
public void setProducerEpoch(short producerEpoch)
Copyright © 2020 Joyqueue Community. All rights reserved.