@Override protected void handleCloseConsumer(CommandCloseConsumer closeConsumer) { log.info("[{}] Broker notification of Closed consumer: {}", remoteAddress, closeConsumer.getConsumerId()); final long consumerId = closeConsumer.getConsumerId(); ConsumerImpl<?> consumer = consumers.get(consumerId); if (consumer != null) { consumer.connectionClosed(this); } else { log.warn("Consumer with id {} not found while closing consumer ", consumerId); } }
@Override protected void handleCloseConsumer(CommandCloseConsumer closeConsumer) { log.info("[{}] Broker notification of Closed consumer: {}", remoteAddress, closeConsumer.getConsumerId()); final long consumerId = closeConsumer.getConsumerId(); ConsumerImpl<?> consumer = consumers.get(consumerId); if (consumer != null) { consumer.connectionClosed(this); } else { log.warn("Consumer with id {} not found while closing consumer ", consumerId); } }
@Override protected void handleCloseConsumer(CommandCloseConsumer closeConsumer) { checkArgument(state == State.Connected); log.info("[{}] Closing consumer: {}", remoteAddress, closeConsumer.getConsumerId()); long consumerId = closeConsumer.getConsumerId();
public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer other) { if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer.getDefaultInstance()) return this; if (other.hasConsumerId()) { setConsumerId(other.getConsumerId()); } if (other.hasRequestId()) { setRequestId(other.getRequestId()); } return this; }
public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer other) { if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer.getDefaultInstance()) return this; if (other.hasConsumerId()) { setConsumerId(other.getConsumerId()); } if (other.hasRequestId()) { setRequestId(other.getRequestId()); } return this; }