Class ImmutableReactiveMessageReaderSpec
java.lang.Object
org.apache.pulsar.reactive.client.api.ImmutableReactiveMessageReaderSpec
- All Implemented Interfaces:
ReactiveMessageReaderSpec
Immutable spec for a
ReactiveMessageReader.-
Constructor Summary
ConstructorsConstructorDescriptionImmutableReactiveMessageReaderSpec(List<String> topicNames, String readerName, String subscriptionName, String generatedSubscriptionNamePrefix, Integer receiverQueueSize, Boolean readCompacted, List<org.apache.pulsar.client.api.Range> keyHashRanges, org.apache.pulsar.client.api.CryptoKeyReader cryptoKeyReader, org.apache.pulsar.client.api.ConsumerCryptoFailureAction cryptoFailureAction) Constructs a ImmutableReactiveMessageConsumerSpec from anotherReactiveMessageConsumerSpec. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pulsar.client.api.ConsumerCryptoFailureActionGets the action the reader will take in case of decryption failures.org.apache.pulsar.client.api.CryptoKeyReaderGets the key reader to be used to decrypt the message payloads.Gets the generated subscription name prefix.List<org.apache.pulsar.client.api.Range>Gets the key hash ranges of the reader.Gets whether to read messages from the compacted topic rather than reading the full message backlog of the topic.Gets the reader name.Gets the size of the reader receive queue.Gets the subscription name.Gets the topics to read from.
-
Constructor Details
-
ImmutableReactiveMessageReaderSpec
public ImmutableReactiveMessageReaderSpec(List<String> topicNames, String readerName, String subscriptionName, String generatedSubscriptionNamePrefix, Integer receiverQueueSize, Boolean readCompacted, List<org.apache.pulsar.client.api.Range> keyHashRanges, org.apache.pulsar.client.api.CryptoKeyReader cryptoKeyReader, org.apache.pulsar.client.api.ConsumerCryptoFailureAction cryptoFailureAction) -
ImmutableReactiveMessageReaderSpec
Constructs a ImmutableReactiveMessageConsumerSpec from anotherReactiveMessageConsumerSpec.- Parameters:
readerSpec- the spec to construct from
-
-
Method Details
-
getTopicNames
Description copied from interface:ReactiveMessageReaderSpecGets the topics to read from.- Specified by:
getTopicNamesin interfaceReactiveMessageReaderSpec- Returns:
- the topic names
- See Also:
-
ReaderBuilder.topics(List)
-
getReaderName
Description copied from interface:ReactiveMessageReaderSpecGets the reader name.- Specified by:
getReaderNamein interfaceReactiveMessageReaderSpec- Returns:
- the reader name
- See Also:
-
ReaderBuilder.readerName(String)
-
getSubscriptionName
Description copied from interface:ReactiveMessageReaderSpecGets the subscription name.- Specified by:
getSubscriptionNamein interfaceReactiveMessageReaderSpec- Returns:
- the name of the subscription
- See Also:
-
ReaderBuilder.subscriptionName(String)
-
getGeneratedSubscriptionNamePrefix
Description copied from interface:ReactiveMessageReaderSpecGets the generated subscription name prefix. The default prefix is "reader".- Specified by:
getGeneratedSubscriptionNamePrefixin interfaceReactiveMessageReaderSpec- Returns:
- the generated subscription name prefix
- See Also:
-
ReaderBuilder.subscriptionRolePrefix(String)
-
getReceiverQueueSize
Description copied from interface:ReactiveMessageReaderSpecGets the size of the reader receive queue.- Specified by:
getReceiverQueueSizein interfaceReactiveMessageReaderSpec- Returns:
- the size of the reader receive queue
- See Also:
-
ReaderBuilder.receiverQueueSize(int)
-
getReadCompacted
Description copied from interface:ReactiveMessageReaderSpecGets whether to read messages from the compacted topic rather than reading the full message backlog of the topic.- Specified by:
getReadCompactedin interfaceReactiveMessageReaderSpec- Returns:
- true if messages are read from the compacted topic
- See Also:
-
ReaderBuilder.readCompacted(boolean)
-
getKeyHashRanges
Description copied from interface:ReactiveMessageReaderSpecGets the key hash ranges of the reader.- Specified by:
getKeyHashRangesin interfaceReactiveMessageReaderSpec- Returns:
- the key hash ranges
- See Also:
-
ReaderBuilder.keyHashRange(Range...)
-
getCryptoKeyReader
public org.apache.pulsar.client.api.CryptoKeyReader getCryptoKeyReader()Description copied from interface:ReactiveMessageReaderSpecGets the key reader to be used to decrypt the message payloads.- Specified by:
getCryptoKeyReaderin interfaceReactiveMessageReaderSpec- Returns:
- the key reader to be used to decrypt the message payloads
- See Also:
-
ReaderBuilder.cryptoKeyReader(org.apache.pulsar.client.api.CryptoKeyReader)
-
getCryptoFailureAction
public org.apache.pulsar.client.api.ConsumerCryptoFailureAction getCryptoFailureAction()Description copied from interface:ReactiveMessageReaderSpecGets the action the reader will take in case of decryption failures.- Specified by:
getCryptoFailureActionin interfaceReactiveMessageReaderSpec- Returns:
- the action the reader will take in case of decryption failures
- See Also:
-
ReaderBuilder.cryptoFailureAction(org.apache.pulsar.client.api.ConsumerCryptoFailureAction)
-