public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata other) { if (other == org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata.getDefaultInstance()) return this; if (other.hasProducerName()) { setProducerName(other.getProducerName());
private void printSendCommandDebug(CommandSend send, ByteBuf headersAndPayload) { headersAndPayload.markReaderIndex(); MessageMetadata msgMetadata = Commands.parseMessageMetadata(headersAndPayload); headersAndPayload.resetReaderIndex(); log.debug("[{}] Received send message request. producer: {}:{} {}:{} size: {}", remoteAddress, send.getProducerId(), send.getSequenceId(), msgMetadata.getProducerName(), msgMetadata.getSequenceId(), headersAndPayload.readableBytes()); msgMetadata.recycle(); }
producerName = md.getProducerName(); sequenceId = md.getSequenceId(); publishContext.setOriginalProducerName(producerName);
public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata other) { if (other == org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata.getDefaultInstance()) return this; if (other.hasProducerName()) { setProducerName(other.getProducerName());
@Override public void readEntriesComplete(List<Entry> entries, Object ctx) { for (Entry entry : entries) { ByteBuf messageMetadataAndPayload = entry.getDataBuffer(); MessageMetadata md = Commands.parseMessageMetadata(messageMetadataAndPayload); String producerName = md.getProducerName(); long sequenceId = md.getSequenceId(); highestSequencedPushed.put(producerName, sequenceId); highestSequencedPersisted.put(producerName, sequenceId); md.recycle(); entry.release(); } if (managedCursor.hasMoreEntries()) { // Read next batch of entries pulsar.getExecutor().execute(() -> replayCursor(future)); } else { // Done replaying future.complete(null); } }
public Builder clearProducerName() { bitField0_ = (bitField0_ & ~0x00000001); producerName_ = getDefaultInstance().getProducerName(); return this; } void setProducerName(org.apache.pulsar.shaded.com.google.protobuf.v241.ByteString value) {
@Override public String getProducerName() { return msgMetadata.get().getProducerName(); }
public Builder clearProducerName() { bitField0_ = (bitField0_ & ~0x00000001); producerName_ = getDefaultInstance().getProducerName(); return this; } void setProducerName(org.apache.pulsar.shaded.com.google.protobuf.v241.ByteString value) {