in pulsar-client-reactive-api/src/main/java/org/apache/pulsar/reactive/client/api/MutableReactiveMessageConsumerSpec.java [122:190]
public MutableReactiveMessageConsumerSpec(ReactiveMessageConsumerSpec consumerSpec) {
this.topicNames = (consumerSpec.getTopicNames() != null && !consumerSpec.getTopicNames().isEmpty())
? new ArrayList<>(consumerSpec.getTopicNames()) : new ArrayList<>();
this.topicsPattern = consumerSpec.getTopicsPattern();
this.topicsPatternSubscriptionMode = consumerSpec.getTopicsPatternSubscriptionMode();
this.topicsPatternAutoDiscoveryPeriod = consumerSpec.getTopicsPatternAutoDiscoveryPeriod();
this.subscriptionName = consumerSpec.getSubscriptionName();
this.subscriptionMode = consumerSpec.getSubscriptionMode();
this.subscriptionType = consumerSpec.getSubscriptionType();
this.subscriptionInitialPosition = consumerSpec.getSubscriptionInitialPosition();
this.keySharedPolicy = consumerSpec.getKeySharedPolicy();
this.replicateSubscriptionState = consumerSpec.getReplicateSubscriptionState();
this.subscriptionProperties = (consumerSpec.getSubscriptionProperties() != null
&& !consumerSpec.getSubscriptionProperties().isEmpty())
? new LinkedHashMap<>(consumerSpec.getSubscriptionProperties()) : null;
this.consumerName = consumerSpec.getConsumerName();
this.properties = (consumerSpec.getProperties() != null && !consumerSpec.getProperties().isEmpty())
? new LinkedHashMap<>(consumerSpec.getProperties()) : null;
this.priorityLevel = consumerSpec.getPriorityLevel();
this.readCompacted = consumerSpec.getReadCompacted();
this.batchIndexAckEnabled = consumerSpec.getBatchIndexAckEnabled();
this.ackTimeout = consumerSpec.getAckTimeout();
this.ackTimeoutTickTime = consumerSpec.getAckTimeoutTickTime();
this.acknowledgementsGroupTime = consumerSpec.getAcknowledgementsGroupTime();
this.acknowledgeAsynchronously = consumerSpec.getAcknowledgeAsynchronously();
this.acknowledgeScheduler = consumerSpec.getAcknowledgeScheduler();
this.negativeAckRedeliveryDelay = consumerSpec.getNegativeAckRedeliveryDelay();
this.deadLetterPolicy = consumerSpec.getDeadLetterPolicy();
this.retryLetterTopicEnable = consumerSpec.getRetryLetterTopicEnable();
this.receiverQueueSize = consumerSpec.getReceiverQueueSize();
this.maxTotalReceiverQueueSizeAcrossPartitions = consumerSpec.getMaxTotalReceiverQueueSizeAcrossPartitions();
this.autoUpdatePartitions = consumerSpec.getAutoUpdatePartitions();
this.autoUpdatePartitionsInterval = consumerSpec.getAutoUpdatePartitionsInterval();
this.cryptoKeyReader = consumerSpec.getCryptoKeyReader();
this.cryptoFailureAction = consumerSpec.getCryptoFailureAction();
this.maxPendingChunkedMessage = consumerSpec.getMaxPendingChunkedMessage();
this.autoAckOldestChunkedMessageOnQueueFull = consumerSpec.getAutoAckOldestChunkedMessageOnQueueFull();
this.expireTimeOfIncompleteChunkedMessage = consumerSpec.getExpireTimeOfIncompleteChunkedMessage();
}