19#ifndef PULSAR_READER_CONFIGURATION_H_
20#define PULSAR_READER_CONFIGURATION_H_
22#include <pulsar/ConsumerCryptoFailureAction.h>
23#include <pulsar/CryptoKeyReader.h>
24#include <pulsar/Message.h>
25#include <pulsar/Result.h>
26#include <pulsar/Schema.h>
27#include <pulsar/defines.h>
39typedef std::function<void(
Result result, MessageId messageId)> GetLastMessageIdCallback;
44struct ReaderConfigurationImpl;
316 std::shared_ptr<ReaderConfigurationImpl> impl_;
Definition ReaderConfiguration.h:49
void setReceiverQueueSize(int size)
bool hasProperty(const std::string &name) const
bool hasReaderListener() const
void setUnAckedMessagesTimeoutMs(const uint64_t milliSeconds)
ReaderConfiguration & setProperties(const std::map< std::string, std::string > &properties)
long getTickDurationInMs() const
void setTickDurationInMs(const uint64_t milliSeconds)
void setSubscriptionRolePrefix(const std::string &subscriptionRolePrefix)
bool isStartMessageIdInclusive() const
long getUnAckedMessagesTimeoutMs() const
ReaderConfiguration & setCryptoKeyReader(CryptoKeyReaderPtr cryptoKeyReader)
const SchemaInfo & getSchema() const
ReaderConfiguration & setCryptoFailureAction(ConsumerCryptoFailureAction action)
void setReaderName(const std::string &readerName)
ReaderConfiguration & setProperty(const std::string &name, const std::string &value)
bool isReadCompacted() const
const std::string & getInternalSubscriptionName() const
std::map< std::string, std::string > & getProperties() const
bool isEncryptionEnabled() const
ReaderListener getReaderListener() const
void setReadCompacted(bool compacted)
const std::string & getProperty(const std::string &name) const
void setAckGroupingTimeMs(long ackGroupingMillis)
ReaderConfiguration & setReaderListener(ReaderListener listener)
ReaderConfiguration & setSchema(const SchemaInfo &schemaInfo)
int getReceiverQueueSize() const
ReaderConfiguration & setStartMessageIdInclusive(bool startMessageIdInclusive)
long getAckGroupingTimeMs() const
const std::string & getReaderName() const
const CryptoKeyReaderPtr getCryptoKeyReader() const
void setInternalSubscriptionName(std::string internalSubscriptionName)
const std::string & getSubscriptionRolePrefix() const
ConsumerCryptoFailureAction getCryptoFailureAction() const
void setAckGroupingMaxSize(long maxGroupingSize)
long getAckGroupingMaxSize() const
Definition Authentication.h:31
std::function< void(Reader reader, const Message &msg)> ReaderListener
Callback definition for MessageListener.
Definition ReaderConfiguration.h:42
std::function< void(Result result)> ResultCallback
Callback definition for non-data operation.
Definition ConsumerConfiguration.h:50
Result
Definition Result.h:32