类的使用
org.apache.pulsar.common.api.proto.SingleMessageMetadata
使用SingleMessageMetadata的程序包
程序包
说明
Classes implementing raw API messages.
Common protocol.
-
org.apache.pulsar.common.api.proto中SingleMessageMetadata的使用
修饰符和类型方法说明SingleMessageMetadata.addAllProperties(Iterable<KeyValue> properties) SingleMessageMetadata.clear()SingleMessageMetadata.clearCompactedOut()SingleMessageMetadata.clearEventTime()SingleMessageMetadata.clearNullPartitionKey()SingleMessageMetadata.clearNullValue()SingleMessageMetadata.clearOrderingKey()SingleMessageMetadata.clearPartitionKey()SingleMessageMetadata.clearPartitionKeyB64Encoded()SingleMessageMetadata.clearPayloadSize()SingleMessageMetadata.clearProperties()SingleMessageMetadata.clearSequenceId()SingleMessageMetadata.copyFrom(SingleMessageMetadata _other) SingleMessageMetadata.setCompactedOut(boolean compactedOut) SingleMessageMetadata.setEventTime(long eventTime) SingleMessageMetadata.setNullPartitionKey(boolean nullPartitionKey) SingleMessageMetadata.setNullValue(boolean nullValue) SingleMessageMetadata.setOrderingKey(byte[] orderingKey) SingleMessageMetadata.setOrderingKey(io.netty.buffer.ByteBuf orderingKey) SingleMessageMetadata.setPartitionKey(String partitionKey) SingleMessageMetadata.setPartitionKeyB64Encoded(boolean partitionKeyB64Encoded) SingleMessageMetadata.setPayloadSize(int payloadSize) SingleMessageMetadata.setSequenceId(long sequenceId) -
org.apache.pulsar.common.api.raw中SingleMessageMetadata的使用
修饰符和类型方法说明static RawMessageRawMessageImpl.get(ReferenceCountedMessageMetadata msgMetadata, SingleMessageMetadata singleMessageMetadata, io.netty.buffer.ByteBuf payload, long ledgerId, long entryId, long batchIndex) -
org.apache.pulsar.common.protocol中SingleMessageMetadata的使用
修饰符和类型方法说明static io.netty.buffer.ByteBufCommands.deSerializeSingleMessageInBatch(io.netty.buffer.ByteBuf uncompressedPayload, SingleMessageMetadata singleMessageMetadata, int index, int batchSize) static io.netty.buffer.ByteBufCommands.serializeSingleMessageInBatchWithPayload(SingleMessageMetadata singleMessageMetadata, io.netty.buffer.ByteBuf payload, io.netty.buffer.ByteBuf batchBuffer)