PulsarClient.newReader() to construct and configure a Reader instance@Deprecated public class ReaderConfiguration extends Object implements Serializable
| Constructor and Description |
|---|
ReaderConfiguration()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ConsumerCryptoFailureAction |
getCryptoFailureAction()
Deprecated.
|
CryptoKeyReader |
getCryptoKeyReader()
Deprecated.
|
ReaderConfigurationData<byte[]> |
getReaderConfigurationData()
Deprecated.
|
ReaderListener<byte[]> |
getReaderListener()
Deprecated.
|
String |
getReaderName()
Deprecated.
|
int |
getReceiverQueueSize()
Deprecated.
|
String |
getSubscriptionRolePrefix()
Deprecated.
|
void |
setCryptoFailureAction(ConsumerCryptoFailureAction action)
Deprecated.
Sets the ConsumerCryptoFailureAction to the value specified
|
ReaderConfiguration |
setCryptoKeyReader(CryptoKeyReader cryptoKeyReader)
Deprecated.
Sets a
CryptoKeyReader |
ReaderConfiguration |
setReaderListener(ReaderListener<byte[]> readerListener)
Deprecated.
Sets a
ReaderListener for the reader |
ReaderConfiguration |
setReaderName(String readerName)
Deprecated.
Set the consumer name.
|
ReaderConfiguration |
setReceiverQueueSize(int receiverQueueSize)
Deprecated.
Sets the size of the consumer receive queue.
|
ReaderConfiguration |
setSubscriptionRolePrefix(String subscriptionRolePrefix)
Deprecated.
Set the subscription role prefix for subscription auth.
|
public ReaderListener<byte[]> getReaderListener()
ReaderListener for the readerpublic ReaderConfiguration setReaderListener(ReaderListener<byte[]> readerListener)
ReaderListener for the reader
When a ReaderListener is set, application will receive messages through it. Calls to
Reader.readNext() will not be allowed.
readerListener - the listener objectpublic int getReceiverQueueSize()
public CryptoKeyReader getCryptoKeyReader()
public ReaderConfiguration setCryptoKeyReader(CryptoKeyReader cryptoKeyReader)
CryptoKeyReadercryptoKeyReader - CryptoKeyReader objectpublic void setCryptoFailureAction(ConsumerCryptoFailureAction action)
action - The action to take when the decoding failspublic ConsumerCryptoFailureAction getCryptoFailureAction()
public ReaderConfiguration setReceiverQueueSize(int receiverQueueSize)
The consumer receive queue controls how many messages can be accumulated by the Consumer before the
application calls Consumer.receive(). Using a higher value could potentially increase the consumer
throughput at the expense of bigger memory utilization.
1000 messages and should be good for most use cases.receiverQueueSize - the new receiver queue size valuepublic String getReaderName()
public ReaderConfiguration setReaderName(String readerName)
readerName - public String getSubscriptionRolePrefix()
public ReaderConfiguration setSubscriptionRolePrefix(String subscriptionRolePrefix)
subscriptionRolePrefix - public ReaderConfigurationData<byte[]> getReaderConfigurationData()
Copyright © 2017–2018 Apache Software Foundation. All rights reserved.