@Override protected void handleCloseProducer(CommandCloseProducer closeProducer) { log.info("[{}] Broker notification of Closed producer: {}", remoteAddress, closeProducer.getProducerId()); final long producerId = closeProducer.getProducerId(); ProducerImpl<?> producer = producers.get(producerId); if (producer != null) { producer.connectionClosed(this); } else { log.warn("Producer with id {} not found while closing producer ", producerId); } }
@Override protected void handleCloseProducer(CommandCloseProducer closeProducer) { log.info("[{}] Broker notification of Closed producer: {}", remoteAddress, closeProducer.getProducerId()); final long producerId = closeProducer.getProducerId(); ProducerImpl<?> producer = producers.get(producerId); if (producer != null) { producer.connectionClosed(this); } else { log.warn("Producer with id {} not found while closing producer ", producerId); } }
checkArgument(state == State.Connected); final long producerId = closeProducer.getProducerId(); final long requestId = closeProducer.getRequestId();
public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer other) { if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer.getDefaultInstance()) return this; if (other.hasProducerId()) { setProducerId(other.getProducerId()); } if (other.hasRequestId()) { setRequestId(other.getRequestId()); } return this; }
public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer other) { if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer.getDefaultInstance()) return this; if (other.hasProducerId()) { setProducerId(other.getProducerId()); } if (other.hasRequestId()) { setRequestId(other.getRequestId()); } return this; }