| Package | Description |
|---|---|
| org.apache.pulsar.common.protocol |
Common protocol.
|
| Modifier and Type | Method and Description |
|---|---|
static ByteBufPair |
ByteBufPair.get(io.netty.buffer.ByteBuf b1,
io.netty.buffer.ByteBuf b2)
Get a new
ByteBufPair from the pool and assign 2 buffers to it. |
static ByteBufPair |
Commands.newMessage(long consumerId,
long ledgerId,
long entryId,
int partition,
int redeliveryCount,
io.netty.buffer.ByteBuf metadataAndPayload,
long[] ackSet) |
static ByteBufPair |
Commands.newSend(long producerId,
long sequenceId,
int numMessaegs,
Commands.ChecksumType checksumType,
MessageMetadata messageMetadata,
io.netty.buffer.ByteBuf payload) |
static ByteBufPair |
Commands.newSend(long producerId,
long lowestSequenceId,
long highestSequenceId,
int numMessaegs,
Commands.ChecksumType checksumType,
MessageMetadata messageMetadata,
io.netty.buffer.ByteBuf payload) |
static ByteBufPair |
Commands.newSend(long producerId,
long sequenceId,
long highestSequenceId,
int numMessages,
long txnIdLeastBits,
long txnIdMostBits,
Commands.ChecksumType checksumType,
MessageMetadata messageData,
io.netty.buffer.ByteBuf payload) |
static ByteBufPair |
Commands.serializeCommandMessageWithSize(BaseCommand cmd,
io.netty.buffer.ByteBuf metadataAndPayload) |
| Modifier and Type | Method and Description |
|---|---|
static io.netty.buffer.ByteBuf |
ByteBufPair.coalesce(ByteBufPair pair) |
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.