mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-02 11:37:50 +00:00
Invoke error callback if present instead of log callback (#93)
This commit is contained in:
committed by
Matias Fontanini
parent
eb46b8808e
commit
c5aca985b8
@@ -62,19 +62,22 @@ class KafkaHandleBase;
|
||||
class CPPKAFKA_API Configuration : public ConfigurationBase<Configuration> {
|
||||
public:
|
||||
using DeliveryReportCallback = std::function<void(Producer& producer, const Message&)>;
|
||||
using OffsetCommitCallback = std::function<void(Consumer& consumer, Error,
|
||||
using OffsetCommitCallback = std::function<void(Consumer& consumer,
|
||||
Error error,
|
||||
const TopicPartitionList& topic_partitions)>;
|
||||
using ErrorCallback = std::function<void(KafkaHandleBase& handle, int error,
|
||||
using ErrorCallback = std::function<void(KafkaHandleBase& handle,
|
||||
int error,
|
||||
const std::string& reason)>;
|
||||
using ThrottleCallback = std::function<void(KafkaHandleBase& handle,
|
||||
const std::string& broker_name,
|
||||
int32_t broker_id,
|
||||
std::chrono::milliseconds throttle_time)>;
|
||||
using LogCallback = std::function<void(KafkaHandleBase& handle, int level,
|
||||
using LogCallback = std::function<void(KafkaHandleBase& handle,
|
||||
int level,
|
||||
const std::string& facility,
|
||||
const std::string& message)>;
|
||||
using StatsCallback = std::function<void(KafkaHandleBase& handle, const std::string& json)>;
|
||||
using SocketCallback = std::function<int(int domain, int type, int protoco)>;
|
||||
using SocketCallback = std::function<int(int domain, int type, int protocol)>;
|
||||
|
||||
using ConfigurationBase<Configuration>::set;
|
||||
using ConfigurationBase<Configuration>::get;
|
||||
|
||||
Reference in New Issue
Block a user