Interface ReactiveMessageReaderSpec

All Known Implementing Classes:
ImmutableReactiveMessageReaderSpec, MutableReactiveMessageReaderSpec

public interface ReactiveMessageReaderSpec
  • Method Details

    • getTopicNames

      List<String> getTopicNames()
      Gets the topics to read from.
      Returns:
      the topic names
      See Also:
      • ReaderBuilder.topics(List)
    • getReaderName

      String getReaderName()
      Gets the reader name.
      Returns:
      the reader name
      See Also:
      • ReaderBuilder.readerName(String)
    • getSubscriptionName

      String getSubscriptionName()
      Gets the subscription name.
      Returns:
      the name of the subscription
      See Also:
      • ReaderBuilder.subscriptionName(String)
    • getGeneratedSubscriptionNamePrefix

      String getGeneratedSubscriptionNamePrefix()
      Gets the generated subscription name prefix. The default prefix is "reader".
      Returns:
      the generated subscription name prefix
      See Also:
      • ReaderBuilder.subscriptionRolePrefix(String)
    • getReceiverQueueSize

      Integer getReceiverQueueSize()
      Gets the size of the reader receive queue.
      Returns:
      the size of the reader receive queue
      See Also:
      • ReaderBuilder.receiverQueueSize(int)
    • getReadCompacted

      Boolean getReadCompacted()
      Gets whether to read messages from the compacted topic rather than reading the full message backlog of the topic.
      Returns:
      true if messages are read from the compacted topic
      See Also:
      • ReaderBuilder.readCompacted(boolean)
    • getKeyHashRanges

      List<org.apache.pulsar.client.api.Range> getKeyHashRanges()
      Gets the key hash ranges of the reader.
      Returns:
      the key hash ranges
      See Also:
      • ReaderBuilder.keyHashRange(Range...)
    • getCryptoKeyReader

      org.apache.pulsar.client.api.CryptoKeyReader getCryptoKeyReader()
      Gets the key reader to be used to decrypt the message payloads.
      Returns:
      the key reader to be used to decrypt the message payloads
      See Also:
      • ReaderBuilder.cryptoKeyReader(org.apache.pulsar.client.api.CryptoKeyReader)
    • getCryptoFailureAction

      org.apache.pulsar.client.api.ConsumerCryptoFailureAction getCryptoFailureAction()
      Gets the action the reader will take in case of decryption failures.
      Returns:
      the action the reader will take in case of decryption failures
      See Also:
      • ReaderBuilder.cryptoFailureAction(org.apache.pulsar.client.api.ConsumerCryptoFailureAction)