@Override protected void handleProducerSuccess(CommandProducerSuccess success) { checkArgument(state == State.Ready); if (log.isDebugEnabled()) { log.debug("{} Received producer success response from server: {} - producer-name: {}", ctx.channel(), success.getRequestId(), success.getProducerName()); } long requestId = success.getRequestId(); CompletableFuture<ProducerResponse> requestFuture = pendingRequests.remove(requestId); if (requestFuture != null) { requestFuture.complete(new ProducerResponse(success.getProducerName(), success.getLastSequenceId(), success.getSchemaVersion().toByteArray())); } else { log.warn("{} Received unknown request id from server: {}", ctx.channel(), success.getRequestId()); } }
@Override protected void handleProducerSuccess(CommandProducerSuccess success) { checkArgument(state == State.Ready); if (log.isDebugEnabled()) { log.debug("{} Received producer success response from server: {} - producer-name: {}", ctx.channel(), success.getRequestId(), success.getProducerName()); } long requestId = success.getRequestId(); CompletableFuture<ProducerResponse> requestFuture = pendingRequests.remove(requestId); if (requestFuture != null) { requestFuture.complete(new ProducerResponse(success.getProducerName(), success.getLastSequenceId(), success.getSchemaVersion().toByteArray())); } else { log.warn("{} Received unknown request id from server: {}", ctx.channel(), success.getRequestId()); } }
public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess other) { if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess.getDefaultInstance()) return this; if (other.hasRequestId()) { setRequestId(other.getRequestId()); } if (other.hasProducerName()) { setProducerName(other.getProducerName()); } if (other.hasLastSequenceId()) { setLastSequenceId(other.getLastSequenceId()); } if (other.hasSchemaVersion()) { setSchemaVersion(other.getSchemaVersion()); } return this; }
public Builder clearSchemaVersion() { bitField0_ = (bitField0_ & ~0x00000008); schemaVersion_ = getDefaultInstance().getSchemaVersion(); return this; }
public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess other) { if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess.getDefaultInstance()) return this; if (other.hasRequestId()) { setRequestId(other.getRequestId()); } if (other.hasProducerName()) { setProducerName(other.getProducerName()); } if (other.hasLastSequenceId()) { setLastSequenceId(other.getLastSequenceId()); } if (other.hasSchemaVersion()) { setSchemaVersion(other.getSchemaVersion()); } return this; }
public Builder clearSchemaVersion() { bitField0_ = (bitField0_ & ~0x00000008); schemaVersion_ = getDefaultInstance().getSchemaVersion(); return this; }