Package org.apache.pulsar.client.api
Class ReaderConfiguration
java.lang.Object
org.apache.pulsar.client.api.ReaderConfiguration
- All Implemented Interfaces:
Serializable
Deprecated.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pulsar.client.api.ConsumerCryptoFailureActionDeprecated.org.apache.pulsar.client.api.CryptoKeyReaderDeprecated.org.apache.pulsar.client.impl.conf.ReaderConfigurationData<byte[]>Deprecated.ReaderListener<byte[]>Deprecated.Deprecated.intDeprecated.Deprecated.voidsetCryptoFailureAction(org.apache.pulsar.client.api.ConsumerCryptoFailureAction action) Deprecated.Sets the ConsumerCryptoFailureAction to the value specified.setCryptoKeyReader(org.apache.pulsar.client.api.CryptoKeyReader cryptoKeyReader) Deprecated.Sets aCryptoKeyReader.setReaderListener(ReaderListener<byte[]> readerListener) Deprecated.Sets aReaderListenerfor the readersetReaderName(String readerName) Deprecated.Set the consumer name.setReceiverQueueSize(int receiverQueueSize) Deprecated.Sets the size of the consumer receive queue.setSubscriptionRolePrefix(String subscriptionRolePrefix) Deprecated.Set the subscription role prefix for subscription auth.
-
Constructor Details
-
ReaderConfiguration
public ReaderConfiguration()Deprecated.
-
-
Method Details
-
getReaderListener
Deprecated.- Returns:
- the configured
ReaderListenerfor the reader
-
setReaderListener
Deprecated.Sets aReaderListenerfor the readerWhen a
ReaderListeneris set, application will receive messages through it. Calls toReader.readNext()will not be allowed.- Parameters:
readerListener- the listener object
-
getReceiverQueueSize
public int getReceiverQueueSize()Deprecated.- Returns:
- the configure receiver queue size value
-
getCryptoKeyReader
public org.apache.pulsar.client.api.CryptoKeyReader getCryptoKeyReader()Deprecated.- Returns:
- the CryptoKeyReader
-
setCryptoKeyReader
public ReaderConfiguration setCryptoKeyReader(org.apache.pulsar.client.api.CryptoKeyReader cryptoKeyReader) Deprecated.Sets aCryptoKeyReader.- Parameters:
cryptoKeyReader- CryptoKeyReader object
-
setCryptoFailureAction
public void setCryptoFailureAction(org.apache.pulsar.client.api.ConsumerCryptoFailureAction action) Deprecated.Sets the ConsumerCryptoFailureAction to the value specified.- Parameters:
action- The action to take when the decoding fails
-
getCryptoFailureAction
public org.apache.pulsar.client.api.ConsumerCryptoFailureAction getCryptoFailureAction()Deprecated.- Returns:
- The ConsumerCryptoFailureAction
-
setReceiverQueueSize
Deprecated.Sets the size of the consumer receive queue.The consumer receive queue controls how many messages can be accumulated by the
Default value isConsumerbefore the application callsConsumer.receive(). Using a higher value could potentially increase the consumer throughput at the expense of bigger memory utilization.1000messages and should be good for most use cases.- Parameters:
receiverQueueSize- the new receiver queue size value
-
getReaderName
Deprecated.- Returns:
- the consumer name
-
setReaderName
Deprecated.Set the consumer name.- Parameters:
readerName-
-
getSubscriptionRolePrefix
Deprecated.- Returns:
- the subscription role prefix for subscription auth
-
setSubscriptionRolePrefix
Deprecated.Set the subscription role prefix for subscription auth. The default prefix is "reader".- Parameters:
subscriptionRolePrefix-
-
getReaderConfigurationData
public org.apache.pulsar.client.impl.conf.ReaderConfigurationData<byte[]> getReaderConfigurationData()Deprecated.
-
PulsarClient#newReader()to construct and configure aReaderinstance