Uses of Class
org.apache.pulsar.client.api.ProducerConfiguration
Packages that use ProducerConfiguration
Package
Description
Pulsar Client API.
Pulsar Client API.
-
Uses of ProducerConfiguration in org.apache.pulsar.client.api
Methods in org.apache.pulsar.client.api that return ProducerConfigurationModifier and TypeMethodDescriptionProducerConfiguration.setBatchingEnabled(boolean batchMessagesEnabled) Deprecated.Control whether automatic batching of messages is enabled for the producer.ProducerConfiguration.setBatchingMaxMessages(int batchMessagesMaxMessagesPerBatch) Deprecated.Set the maximum number of messages permitted in a batch.ProducerConfiguration.setBatchingMaxPublishDelay(long batchDelay, TimeUnit timeUnit) Deprecated.Set the time period within which the messages sent will be batched default: 1ms if batch messages are enabled.ProducerConfiguration.setBlockIfQueueFull(boolean blockIfQueueFull) Deprecated.Set whether theProducer.send(byte[])andProducer.sendAsync(byte[])operations should block when the outgoing message queue is full.ProducerConfiguration.setCompressionType(org.apache.pulsar.client.api.CompressionType compressionType) Deprecated.Set the compression type for the producer.ProducerConfiguration.setCryptoKeyReader(org.apache.pulsar.client.api.CryptoKeyReader cryptoKeyReader) Deprecated.Sets aCryptoKeyReader.ProducerConfiguration.setHashingScheme(ProducerConfiguration.HashingScheme hashingScheme) Deprecated.ProducerConfiguration.setInitialSequenceId(long initialSequenceId) Deprecated.Set the baseline for the sequence ids for messages published by the producer.ProducerConfiguration.setMaxPendingMessages(int maxPendingMessages) Deprecated.Set the max size of the queue holding the messages pending to receive an acknowledgment from the broker.ProducerConfiguration.setMessageRouter(org.apache.pulsar.client.api.MessageRouter messageRouter) Deprecated.Set a custom message routing policy by passing an implementation of MessageRouter.ProducerConfiguration.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode messageRouteMode) Deprecated.Set the message routing mode for the partitioned producer.ProducerConfiguration.setProperties(Map<String, String> properties) Deprecated.Add all the properties in the provided map.ProducerConfiguration.setProperty(String key, String value) Deprecated.Set a name/value property with this producer.ProducerConfiguration.setSendTimeout(int sendTimeout, TimeUnit unit) Deprecated.Set the send timeout (default: 30 seconds)Methods in org.apache.pulsar.client.api with parameters of type ProducerConfigurationModifier and TypeMethodDescriptionPulsarClient.createProducer(String topic, ProducerConfiguration conf) Deprecated.PulsarClient.createProducerAsync(String topic, ProducerConfiguration conf) Deprecated.use#newProducer()to build a new producer -
Uses of ProducerConfiguration in org.apache.pulsar.client.impl.v1
Methods in org.apache.pulsar.client.impl.v1 with parameters of type ProducerConfigurationModifier and TypeMethodDescriptionPulsarClientV1Impl.createProducer(String topic, ProducerConfiguration conf) PulsarClientV1Impl.createProducerAsync(String topic, ProducerConfiguration conf)
#newProducer()to build a new producer