librdkafka
The Apache Kafka C/C++ client library
|
Go to the documentation of this file.
29 #ifndef _RDKAFKACPP_H_
30 #define _RDKAFKACPP_H_
56 #include <sys/types.h>
63 #ifndef _SSIZE_T_DEFINED
64 #define _SSIZE_T_DEFINED
65 typedef SSIZE_T ssize_t;
69 #ifdef LIBRDKAFKA_STATICLIB
72 #ifdef LIBRDKAFKACPP_EXPORTS
73 #define RD_EXPORT __declspec(dllexport)
75 #define RD_EXPORT __declspec(dllimport)
87 struct rd_kafka_topic_s;
89 struct rd_kafka_conf_s;
90 struct rd_kafka_topic_conf_s;
114 #define RD_KAFKA_VERSION 0x010802ff
128 std::string version_str();
135 std::string get_debug_contexts();
147 int wait_destroyed(
int timeout_ms);
160 void *mem_malloc (
size_t size);
176 void mem_free (
void *ptr);
365 #define ERR_GROUP_LOAD_IN_PROGRESS ERR_COORDINATOR_LOAD_IN_PROGRESS
369 #define ERR_GROUP_COORDINATOR_NOT_AVAILABLE ERR_COORDINATOR_NOT_AVAILABLE
373 #define ERR_NOT_COORDINATOR_FOR_GROUP ERR_NOT_COORDINATOR
591 class TopicPartition;
621 virtual ~
Error () { }
635 virtual std::string name ()
const = 0;
640 virtual std::string str ()
const = 0;
646 virtual bool is_fatal ()
const = 0;
651 virtual bool is_retriable ()
const = 0;
664 virtual bool txn_requires_abort ()
const = 0;
703 virtual void dr_cb (
Message &message) = 0;
746 const std::string &oauthbearer_config) = 0;
777 virtual int32_t partitioner_cb (
const Topic *topic,
778 const std::string *key,
779 int32_t partition_cnt,
780 void *msg_opaque) = 0;
802 int32_t partition_cnt,
803 void *msg_opaque) = 0;
825 virtual void event_cb (
Event &event) = 0;
846 EVENT_SEVERITY_EMERG = 0,
847 EVENT_SEVERITY_ALERT = 1,
848 EVENT_SEVERITY_CRITICAL = 2,
849 EVENT_SEVERITY_ERROR = 3,
850 EVENT_SEVERITY_WARNING = 4,
851 EVENT_SEVERITY_NOTICE = 5,
852 EVENT_SEVERITY_INFO = 6,
853 EVENT_SEVERITY_DEBUG = 7
856 virtual ~
Event () { }
866 virtual Type type ()
const = 0;
872 virtual ErrorCode err ()
const = 0;
878 virtual Severity severity ()
const = 0;
884 virtual std::string fac ()
const = 0;
894 virtual std::string str ()
const = 0;
900 virtual int throttle_time ()
const = 0;
906 virtual std::string broker_name ()
const = 0;
912 virtual int broker_id ()
const = 0;
920 virtual bool fatal ()
const = 0;
937 virtual void consume_cb (
Message &message,
void *opaque) = 0;
1018 std::vector<TopicPartition*>&partitions) = 0;
1045 std::vector<TopicPartition*>&offsets) = 0;
1095 virtual bool ssl_cert_verify_cb (
const std::string &broker_name,
1099 const char *buf,
size_t size,
1100 std::string &errstr) = 0;
1125 virtual int socket_cb (
int domain,
int type,
int protocol) = 0;
1148 virtual int open_cb (
const std::string &path,
int flags,
int mode) = 0;
1197 static Conf *create (ConfType type);
1199 virtual ~
Conf () { }
1215 const std::string &value,
1216 std::string &errstr) = 0;
1220 DeliveryReportCb *dr_cb,
1221 std::string &errstr) = 0;
1225 OAuthBearerTokenRefreshCb *oauthbearer_token_refresh_cb,
1226 std::string &errstr) = 0;
1231 std::string &errstr) = 0;
1241 const Conf *topic_conf,
1242 std::string &errstr) = 0;
1246 PartitionerCb *partitioner_cb,
1247 std::string &errstr) = 0;
1251 PartitionerKeyPointerCb *partitioner_kp_cb,
1252 std::string &errstr) = 0;
1255 virtual Conf::ConfResult set (
const std::string &name, SocketCb *socket_cb,
1256 std::string &errstr) = 0;
1260 std::string &errstr) = 0;
1264 RebalanceCb *rebalance_cb,
1265 std::string &errstr) = 0;
1269 OffsetCommitCb *offset_commit_cb,
1270 std::string &errstr) = 0;
1277 SslCertificateVerifyCb *ssl_cert_verify_cb,
1278 std::string &errstr) = 0;
1314 const void *buffer,
size_t size,
1315 std::string &errstr) = 0;
1329 std::string &value)
const = 0;
1340 OAuthBearerTokenRefreshCb *&oauthbearer_token_refresh_cb)
const = 0;
1355 virtual Conf::ConfResult get(PartitionerKeyPointerCb *&partitioner_kp_cb)
const = 0;
1378 virtual Conf::ConfResult get(SslCertificateVerifyCb *&ssl_cert_verify_cb)
const = 0;
1382 virtual std::list<std::string> *dump () = 0;
1385 virtual Conf::ConfResult set (
const std::string &name, ConsumeCb *consume_cb,
1386 std::string &errstr) = 0;
1404 virtual struct rd_kafka_conf_s *c_ptr_global () = 0;
1423 virtual struct rd_kafka_topic_conf_s *c_ptr_topic () = 0;
1438 std::string &errstr) = 0;
1458 virtual const std::string name ()
const = 0;
1468 virtual const std::string memberid ()
const = 0;
1493 virtual int poll (
int timeout_ms) = 0;
1501 virtual int outq_len () = 0;
1518 virtual ErrorCode metadata (
bool all_topics,
const Topic *only_rkt,
1519 Metadata **metadatap,
int timeout_ms) = 0;
1531 virtual ErrorCode pause (std::vector<TopicPartition*> &partitions) = 0;
1543 virtual ErrorCode resume (std::vector<TopicPartition*> &partitions) = 0;
1554 virtual ErrorCode query_watermark_offsets (
const std::string &topic,
1556 int64_t *low, int64_t *high,
1557 int timeout_ms) = 0;
1576 virtual ErrorCode get_watermark_offsets (
const std::string &topic,
1578 int64_t *low, int64_t *high) = 0;
1602 virtual ErrorCode offsetsForTimes (std::vector<TopicPartition*> &offsets,
1603 int timeout_ms) = 0;
1645 virtual void yield () = 0;
1661 virtual const std::string clusterid (
int timeout_ms) = 0;
1679 virtual struct rd_kafka_s *c_ptr () = 0;
1696 virtual int32_t controllerid (
int timeout_ms) = 0;
1720 virtual ErrorCode fatal_error (std::string &errstr)
const = 0;
1761 virtual ErrorCode oauthbearer_set_token (
const std::string &token_value,
1762 int64_t md_lifetime_ms,
1763 const std::string &md_principal_name,
1764 const std::list<std::string> &extensions,
1765 std::string &errstr) = 0;
1784 virtual ErrorCode oauthbearer_set_token_failure (
const std::string &errstr) = 0;
1811 virtual void mem_free (
void *ptr) = 0;
1840 static TopicPartition *create (
const std::string &topic,
int partition);
1848 static TopicPartition *create (
const std::string &topic,
int partition,
1857 static void destroy (std::vector<TopicPartition*> &partitions);
1860 virtual const std::string &topic ()
const = 0;
1863 virtual int partition ()
const = 0;
1866 virtual int64_t offset ()
const = 0;
1869 virtual void set_offset (int64_t offset) = 0;
1907 static Topic *create (
Handle *base,
const std::string &topic_str,
1908 const Conf *conf, std::string &errstr);
1910 virtual ~
Topic () = 0;
1914 virtual const std::string name ()
const = 0;
1921 virtual bool partition_available (int32_t partition)
const = 0;
1934 virtual ErrorCode offset_store (int32_t partition, int64_t offset) = 0;
1952 virtual struct rd_kafka_topic_s *c_ptr () = 0;
1983 MSG_TIMESTAMP_LOG_APPEND_TIME
2027 key_(key), err_(
ERR_NO_ERROR), value_size_(value_size) {
2028 value_ = copy_value(value, value_size);
2048 key_(key), err_(err), value_(NULL), value_size_(value_size) {
2050 value_ = copy_value(value, value_size);
2059 key_(other.key_), err_(other.err_), value_size_(other.value_size_) {
2060 value_ = copy_value(other.value_, value_size_);
2070 if (&other ==
this) {
2076 value_size_ = other.value_size_;
2081 value_ = copy_value(other.value_, value_size_);
2104 return static_cast<const char *
>(value_);
2118 char *copy_value(
const void *value,
size_t value_size) {
2122 char *dest = (
char *)
mem_malloc(value_size + 1);
2123 memcpy(dest, (
const char *)value, value_size);
2124 dest[value_size] =
'\0';
2133 void *
operator new(size_t);
2141 static Headers *create();
2151 static Headers *create(
const std::vector<Header> &headers);
2162 virtual ErrorCode add(
const std::string &key,
const void *value,
2163 size_t value_size) = 0;
2175 virtual ErrorCode add(
const std::string &key,
const std::string &value) = 0;
2186 virtual ErrorCode add(
const Header &header) = 0;
2195 virtual ErrorCode remove(
const std::string &key) = 0;
2206 virtual std::vector<Header> get(
const std::string &key)
const = 0;
2218 virtual Header get_last(
const std::string &key)
const = 0;
2225 virtual std::vector<Header> get_all()
const = 0;
2230 virtual size_t size()
const = 0;
2253 MSG_STATUS_NOT_PERSISTED = 0,
2258 MSG_STATUS_POSSIBLY_PERSISTED = 1,
2263 MSG_STATUS_PERSISTED = 2,
2273 virtual std::string errstr()
const = 0;
2282 virtual Topic *topic ()
const = 0;
2285 virtual std::string topic_name ()
const = 0;
2288 virtual int32_t partition ()
const = 0;
2291 virtual void *payload ()
const = 0 ;
2294 virtual size_t len ()
const = 0;
2297 virtual const std::string *key ()
const = 0;
2300 virtual const void *key_pointer ()
const = 0 ;
2303 virtual size_t key_len ()
const = 0;
2306 virtual int64_t offset ()
const = 0;
2312 virtual void *msg_opaque ()
const = 0;
2318 virtual int64_t latency ()
const = 0;
2341 virtual Status status ()
const = 0;
2359 virtual int32_t broker_id ()
const = 0;
2416 virtual Message *consume (
int timeout_ms) = 0;
2425 virtual int poll (
int timeout_ms) = 0;
2427 virtual ~
Queue () = 0;
2444 virtual void io_event_enable (
int fd,
const void *payload,
size_t size) = 0;
2502 virtual ErrorCode assignment (std::vector<RdKafka::TopicPartition*> &partitions) = 0;
2506 virtual ErrorCode subscription (std::vector<std::string> &topics) = 0;
2542 virtual ErrorCode subscribe (
const std::vector<std::string> &topics) = 0;
2553 virtual ErrorCode assign (
const std::vector<TopicPartition*> &partitions) = 0;
2584 virtual Message *consume (
int timeout_ms) = 0;
2639 virtual ErrorCode commitSync (std::vector<TopicPartition*> &offsets) = 0;
2650 virtual ErrorCode commitAsync (
const std::vector<TopicPartition*> &offsets) = 0;
2674 virtual ErrorCode commitSync (std::vector<TopicPartition*> &offsets,
2688 virtual ErrorCode committed (std::vector<TopicPartition*> &partitions,
2689 int timeout_ms) = 0;
2699 virtual ErrorCode position (std::vector<TopicPartition*> &partitions) = 0;
2764 virtual ErrorCode offsets_store (std::vector<TopicPartition*> &offsets) = 0;
2794 virtual bool assignment_lost () = 0;
2811 virtual std::string rebalance_protocol () = 0;
2829 virtual Error *incremental_assign (
const std::vector<TopicPartition*> &partitions) = 0;
2847 virtual Error *incremental_unassign (
const std::vector<TopicPartition*> &partitions) = 0;
2878 static Consumer *create (
const Conf *conf, std::string &errstr);
2902 virtual ErrorCode start (
Topic *topic, int32_t partition, int64_t offset) = 0;
2910 virtual ErrorCode start (
Topic *topic, int32_t partition, int64_t offset,
2938 virtual ErrorCode seek (
Topic *topic, int32_t partition, int64_t offset,
2939 int timeout_ms) = 0;
2958 virtual Message *consume (
Topic *topic, int32_t partition,
2959 int timeout_ms) = 0;
2982 virtual Message *consume (
Queue *queue,
int timeout_ms) = 0;
3003 virtual int consume_callback (
Topic *topic, int32_t partition,
3014 virtual int consume_callback (
Queue *queue,
int timeout_ms,
3027 static int64_t OffsetTail(int64_t offset);
3055 static Producer *create (
const Conf *conf, std::string &errstr);
3096 MSG_FREE = RK_MSG_FREE,
3097 MSG_COPY = RK_MSG_COPY
3160 void *payload,
size_t len,
3161 const std::string *key,
3162 void *msg_opaque) = 0;
3170 void *payload,
size_t len,
3171 const void *key,
size_t key_len,
3172 void *msg_opaque) = 0;
3180 virtual ErrorCode produce (
const std::string topic_name, int32_t partition,
3182 void *payload,
size_t len,
3183 const void *key,
size_t key_len,
3184 int64_t timestamp,
void *msg_opaque) = 0;
3193 virtual ErrorCode produce (
const std::string topic_name, int32_t partition,
3195 void *payload,
size_t len,
3196 const void *key,
size_t key_len,
3199 void *msg_opaque) = 0;
3207 const std::vector<char> *payload,
3208 const std::vector<char> *key,
3209 void *msg_opaque) = 0;
3227 virtual ErrorCode flush (
int timeout_ms) = 0;
3257 virtual ErrorCode purge (
int purge_flags) = 0;
3265 PURGE_INFLIGHT = 0x2,
3272 PURGE_NON_BLOCKING = 0x4
3302 virtual Error *init_transactions (
int timeout_ms) = 0;
3317 virtual Error *begin_transaction () = 0;
3365 virtual Error *send_offsets_to_transaction (
3366 const std::vector<TopicPartition*> &offsets,
3368 int timeout_ms) = 0;
3398 virtual Error *commit_transaction (
int timeout_ms) = 0;
3430 virtual Error *abort_transaction (
int timeout_ms) = 0;
3451 virtual int32_t
id()
const = 0;
3454 virtual const std::string
host()
const = 0;
3457 virtual int port()
const = 0;
3481 virtual int32_t
id()
const = 0;
3487 virtual int32_t
leader()
const = 0;
3490 virtual const std::vector<int32_t> *
replicas()
const = 0;
3495 virtual const std::vector<int32_t> *
isrs()
const = 0;
3513 virtual const std::string
topic()
const = 0;
@ ERR_INVALID_REPLICA_ASSIGNMENT
Definition: rdkafkacpp.h:419
@ ERR__TIMED_OUT_QUEUE
Definition: rdkafkacpp.h:274
@ ERR_INVALID_SESSION_TIMEOUT
Definition: rdkafkacpp.h:393
@ ERR__AUTO_OFFSET_RESET
Definition: rdkafkacpp.h:326
@ ERR_NOT_COORDINATOR
Definition: rdkafkacpp.h:371
@ ERR_INVALID_PARTITIONS
Definition: rdkafkacpp.h:415
@ ERR_INVALID_PRINCIPAL_TYPE
Definition: rdkafkacpp.h:480
A Kafka message as returned by the rd_kafka_consume*() family of functions as well as provided to the...
Definition: rdkafka.h:1393
@ CERT_CA
Definition: rdkafkacpp.h:563
SASL/OAUTHBEARER token refresh callback class.
Definition: rdkafkacpp.h:736
@ ERR_DUPLICATE_RESOURCE
Definition: rdkafkacpp.h:533
static const int64_t OFFSET_END
Definition: rdkafkacpp.h:1893
@ ERR_NOT_LEADER_FOR_PARTITION
Definition: rdkafkacpp.h:347
@ ERR__UNDERFLOW
Definition: rdkafkacpp.h:296
High-level KafkaConsumer (for brokers 0.9 and later)
Definition: rdkafkacpp.h:2482
@ ERR_INCONSISTENT_GROUP_PROTOCOL
Definition: rdkafkacpp.h:387
@ ERR_ELECTION_NOT_NEEDED
Definition: rdkafkacpp.h:515
@ ERR__QUEUE_FULL
Definition: rdkafkacpp.h:238
@ ERR_OPERATION_NOT_ATTEMPTED
Definition: rdkafkacpp.h:456
@ ERR_DELEGATION_TOKEN_REQUEST_NOT_ALLOWED
Definition: rdkafkacpp.h:474
@ ERR__CONFLICT
Definition: rdkafkacpp.h:260
rd_kafka_resp_err_t err
Definition: rdkafka.h:1394
@ CONF_GLOBAL
Definition: rdkafkacpp.h:1180
Delivery Report callback class.
Definition: rdkafkacpp.h:698
@ ERR_INVALID_RECORD
Definition: rdkafkacpp.h:522
@ ERR__NOENT
Definition: rdkafkacpp.h:294
@ ERR__INCONSISTENT
Definition: rdkafkacpp.h:308
@ ERR_GROUP_ID_NOT_FOUND
Definition: rdkafkacpp.h:484
@ ERR_ILLEGAL_SASL_STATE
Definition: rdkafkacpp.h:409
@ ERR_NETWORK_EXCEPTION
Definition: rdkafkacpp.h:361
KafkaConsumer: Rebalance callback class
Definition: rdkafkacpp.h:946
@ ERR__BAD_MSG
Definition: rdkafkacpp.h:205
static const int64_t OFFSET_STORED
Definition: rdkafkacpp.h:1894
@ ERR_CLUSTER_AUTHORIZATION_FAILED
Definition: rdkafkacpp.h:403
@ ERR__KEY_SERIALIZATION
Definition: rdkafkacpp.h:282
@ ERR__CRIT_SYS_RESOURCE
Definition: rdkafkacpp.h:215
Queue interface.
Definition: rdkafkacpp.h:2385
@ ERR__FS
Definition: rdkafkacpp.h:228
@ ERR_INVALID_TXN_STATE
Definition: rdkafkacpp.h:437
@ ERR__UNSUPPORTED_FEATURE
Definition: rdkafkacpp.h:276
@ ERR_UNKNOWN_MEMBER_ID
Definition: rdkafkacpp.h:391
@ ERR__PURGE_QUEUE
Definition: rdkafkacpp.h:302
@ ERR_INVALID_GROUP_ID
Definition: rdkafkacpp.h:389
@ ERR_THROTTLING_QUOTA_EXCEEDED
Definition: rdkafkacpp.h:526
@ ERR_INVALID_TIMESTAMP
Definition: rdkafkacpp.h:405
@ ERR__FAIL
Definition: rdkafkacpp.h:211
@ EVENT_LOG
Definition: rdkafkacpp.h:840
@ ERR__MSG_TIMED_OUT
Definition: rdkafkacpp.h:219
@ ERR__VALUE_SERIALIZATION
Definition: rdkafkacpp.h:284
@ ERR__SSL
Definition: rdkafkacpp.h:244
Severity
EVENT_LOG severities (conforms to syslog(3) severities)
Definition: rdkafkacpp.h:845
ErrorCode
Error codes.
Definition: rdkafkacpp.h:200
@ ERR__RESOLVE
Definition: rdkafkacpp.h:217
@ ERR__NOT_CONFIGURED
Definition: rdkafkacpp.h:316
@ ERR__TRANSPORT
Definition: rdkafkacpp.h:213
@ ERR__ISR_INSUFF
Definition: rdkafkacpp.h:240
@ ERR_NOT_ENOUGH_REPLICAS_AFTER_APPEND
Definition: rdkafkacpp.h:381
@ ERR__ASSIGN_PARTITIONS
Definition: rdkafkacpp.h:256
@ ERR_OFFSET_NOT_AVAILABLE
Definition: rdkafkacpp.h:502
@ ERR_NOT_ENOUGH_REPLICAS
Definition: rdkafkacpp.h:379
@ ERR__ALL_BROKERS_DOWN
Definition: rdkafkacpp.h:232
@ ERR_RESOURCE_NOT_FOUND
Definition: rdkafkacpp.h:531
@ ERR__NODE_UPDATE
Definition: rdkafkacpp.h:242
@ ERR_DELEGATION_TOKEN_EXPIRED
Definition: rdkafkacpp.h:478
@ ERR_UNSUPPORTED_SASL_MECHANISM
Definition: rdkafkacpp.h:407
@ ERR_TRANSACTION_COORDINATOR_FENCED
Definition: rdkafkacpp.h:450
@ ERR__BAD_COMPRESSION
Definition: rdkafkacpp.h:207
Type
Event type.
Definition: rdkafkacpp.h:837
Base handle, super class for specific clients.
Definition: rdkafkacpp.h:1453
@ ERR__PREV_IN_PROGRESS
Definition: rdkafkacpp.h:252
@ ERR_DELEGATION_TOKEN_OWNER_MISMATCH
Definition: rdkafkacpp.h:472
@ ERR_SASL_AUTHENTICATION_FAILED
Definition: rdkafkacpp.h:462
@ ERR__VALUE_DESERIALIZATION
Definition: rdkafkacpp.h:288
@ ERR_INVALID_PRODUCER_ID_MAPPING
Definition: rdkafkacpp.h:440
@ ERR__ASSIGNMENT_LOST
Definition: rdkafkacpp.h:322
@ ERR_PRODUCER_FENCED
Definition: rdkafkacpp.h:529
@ ERR__WAIT_CACHE
Definition: rdkafkacpp.h:278
@ ERR_UNKNOWN_PRODUCER_ID
Definition: rdkafkacpp.h:464
@ ERR_ELIGIBLE_LEADERS_NOT_AVAILABLE
Definition: rdkafkacpp.h:513
Offset Commit callback class.
Definition: rdkafkacpp.h:1027
@ ERR_INVALID_COMMIT_OFFSET_SIZE
Definition: rdkafkacpp.h:397
MessageTimestampType type
Definition: rdkafkacpp.h:1986
@ ERR_TOPIC_ALREADY_EXISTS
Definition: rdkafkacpp.h:413
@ ERR_FENCED_INSTANCE_ID
Definition: rdkafkacpp.h:511
@ ERR_STALE_CTRL_EPOCH
Definition: rdkafkacpp.h:357
@ ERR__OUTDATED
Definition: rdkafkacpp.h:272
@ ERR_MSG_SIZE_TOO_LARGE
Definition: rdkafkacpp.h:355
@ ERR_COORDINATOR_NOT_AVAILABLE
Definition: rdkafkacpp.h:367
@ ERR_INCONSISTENT_VOTER_SET
Definition: rdkafkacpp.h:538
@ EVENT_ERROR
Definition: rdkafkacpp.h:838
@ ERR_INVALID_TRANSACTION_TIMEOUT
Definition: rdkafkacpp.h:443
int64_t timestamp
Definition: rdkafkacpp.h:1987
@ ERR_UNKNOWN_LEADER_EPOCH
Definition: rdkafkacpp.h:496
@ ERR_REASSIGNMENT_IN_PROGRESS
Definition: rdkafkacpp.h:466
@ ERR_INVALID_MSG_SIZE
Definition: rdkafkacpp.h:343
@ ERR__INVALID_ARG
Definition: rdkafkacpp.h:234
@ ERR__APPLICATION
Definition: rdkafkacpp.h:320
RD_EXPORT void * mem_malloc(size_t size)
Allocate memory using the same allocator librdkafka uses.
@ ERR_OUT_OF_ORDER_SEQUENCE_NUMBER
Definition: rdkafkacpp.h:431
@ ERR_TOPIC_AUTHORIZATION_FAILED
Definition: rdkafkacpp.h:399
@ ERR__NOT_IMPLEMENTED
Definition: rdkafkacpp.h:266
@ ERR__INTR
Definition: rdkafkacpp.h:280
@ ERR_RECORD_LIST_TOO_LARGE
Definition: rdkafkacpp.h:377
@ ERR__END
Definition: rdkafkacpp.h:329
@ ERR_DELEGATION_TOKEN_NOT_FOUND
Definition: rdkafkacpp.h:470
@ ERR_KAFKA_STORAGE_ERROR
Definition: rdkafkacpp.h:458
@ ERR__IN_PROGRESS
Definition: rdkafkacpp.h:250
Event callback class.
Definition: rdkafkacpp.h:818
@ ERR__UNKNOWN_PARTITION
Definition: rdkafkacpp.h:226
@ ERR__GAPLESS_GUARANTEE
Definition: rdkafkacpp.h:310
@ ERR__EXISTING_SUBSCRIPTION
Definition: rdkafkacpp.h:254
@ ERR__TIMED_OUT
Definition: rdkafkacpp.h:236
Configuration interface.
Definition: rdkafkacpp.h:1174
@ ERR_INVALID_MSG
Definition: rdkafkacpp.h:339
@ MSG_TIMESTAMP_NOT_AVAILABLE
Definition: rdkafkacpp.h:1981
@ ERR__STATE
Definition: rdkafkacpp.h:262
Variant partitioner with key pointer.
Definition: rdkafkacpp.h:789
@ ERR_INVALID_REQUEST
Definition: rdkafkacpp.h:425
@ ERR__FENCED
Definition: rdkafkacpp.h:318
@ ERR__REVOKE_PARTITIONS
Definition: rdkafkacpp.h:258
@ ERR_DUPLICATE_SEQUENCE_NUMBER
Definition: rdkafkacpp.h:433
CertificateEncoding
SSL certificate encoding.
Definition: rdkafkacpp.h:571
@ ERR_UNSUPPORTED_COMPRESSION_TYPE
Definition: rdkafkacpp.h:498
@ ERR_GROUP_AUTHORIZATION_FAILED
Definition: rdkafkacpp.h:401
Partitioner callback class.
Definition: rdkafkacpp.h:759
@ ERR_UNACCEPTABLE_CREDENTIAL
Definition: rdkafkacpp.h:535
@ ERR__UNKNOWN_BROKER
Definition: rdkafkacpp.h:314
@ ERR_PREFERRED_LEADER_NOT_AVAILABLE
Definition: rdkafkacpp.h:506
@ ERR__BEGIN
Definition: rdkafkacpp.h:203
@ ERR_UNKNOWN_TOPIC_OR_PART
Definition: rdkafkacpp.h:341
Consume callback class.
Definition: rdkafkacpp.h:928
ConfType
Configuration object type.
Definition: rdkafkacpp.h:1179
Simple Consumer (legacy)
Definition: rdkafkacpp.h:2866
@ ERR_FETCH_SESSION_ID_NOT_FOUND
Definition: rdkafkacpp.h:486
@ ERR_REPLICA_NOT_AVAILABLE
Definition: rdkafkacpp.h:353
Message object.
Definition: rdkafkacpp.h:2245
@ ERR_POLICY_VIOLATION
Definition: rdkafkacpp.h:429
@ ERR_BROKER_NOT_AVAILABLE
Definition: rdkafkacpp.h:351
@ ERR__DESTROY
Definition: rdkafkacpp.h:209
SSL broker certificate verification class.
Definition: rdkafkacpp.h:1057
@ ERR_OFFSET_METADATA_TOO_LARGE
Definition: rdkafkacpp.h:359
@ ERR__FATAL
Definition: rdkafkacpp.h:306
The Error class is used as a return value from APIs to propagate an error. The error consists of an e...
Definition: rdkafkacpp.h:613
@ MSG_TIMESTAMP_CREATE_TIME
Definition: rdkafkacpp.h:1982
MessageTimestampType
Definition: rdkafkacpp.h:1980
static const int64_t OFFSET_BEGINNING
Special offsets.
Definition: rdkafkacpp.h:1892
Event object class as passed to the EventCb callback.
Definition: rdkafkacpp.h:834
RD_EXPORT void mem_free(void *ptr)
Free pointer returned by librdkafka.
@ ERR_UNSUPPORTED_VERSION
Definition: rdkafkacpp.h:411
@ ERR__INVALID_TYPE
Definition: rdkafkacpp.h:298
@ ERR_REBALANCE_IN_PROGRESS
Definition: rdkafkacpp.h:395
Topic handle.
Definition: rdkafkacpp.h:1881
static const int32_t PARTITION_UA
Unassigned partition.
Definition: rdkafkacpp.h:1889
@ ERR_PRINCIPAL_DESERIALIZATION_FAILURE
Definition: rdkafkacpp.h:544
@ ERR__UNKNOWN_GROUP
Definition: rdkafkacpp.h:248
@ ERR__RETRY
Definition: rdkafkacpp.h:300
@ ERR_NON_EMPTY_GROUP
Definition: rdkafkacpp.h:482
ConfResult
RdKafka::Conf::Set() result code.
Definition: rdkafkacpp.h:1187
Topic+Partition.
Definition: rdkafkacpp.h:1833
@ ERR_MEMBER_ID_REQUIRED
Definition: rdkafkacpp.h:504
@ ERR_DELEGATION_TOKEN_AUTHORIZATION_FAILED
Definition: rdkafkacpp.h:476
@ ERR__WAIT_COORD
Definition: rdkafkacpp.h:246
Status
Message persistence status can be used by the application to find out if a produced message was persi...
Definition: rdkafkacpp.h:2249
@ ERR__READ_ONLY
Definition: rdkafkacpp.h:292
@ ERR__NO_OFFSET
Definition: rdkafkacpp.h:270
Message timestamp object.
Definition: rdkafkacpp.h:1977
@ ERR_UNKNOWN
Definition: rdkafkacpp.h:333
@ ERR_LISTENER_NOT_FOUND
Definition: rdkafkacpp.h:490
@ CERT_ENC_DER
Definition: rdkafkacpp.h:573
@ ERR_LOG_DIR_NOT_FOUND
Definition: rdkafkacpp.h:460
@ ERR_NO_ERROR
Definition: rdkafkacpp.h:335
@ ERR__NOOP
Definition: rdkafkacpp.h:324
@ ERR__UNKNOWN_TOPIC
Definition: rdkafkacpp.h:230
@ ERR_OFFSET_OUT_OF_RANGE
Definition: rdkafkacpp.h:337
@ ERR__MAX_POLL_EXCEEDED
Definition: rdkafkacpp.h:312
@ ERR_NOT_CONTROLLER
Definition: rdkafkacpp.h:423
@ CERT_ENC_PEM
Definition: rdkafkacpp.h:574
@ CERT_ENC_PKCS12
Definition: rdkafkacpp.h:572
@ ERR_ILLEGAL_GENERATION
Definition: rdkafkacpp.h:385
@ ERR_INVALID_PRODUCER_EPOCH
Definition: rdkafkacpp.h:435
@ ERR_SECURITY_DISABLED
Definition: rdkafkacpp.h:454
@ ERR_TRANSACTIONAL_ID_AUTHORIZATION_FAILED
Definition: rdkafkacpp.h:452
@ ERR__AUTHENTICATION
Definition: rdkafkacpp.h:268
@ CERT_PRIVATE_KEY
Definition: rdkafkacpp.h:562
Producer.
Definition: rdkafkacpp.h:3043
@ ERR_LEADER_NOT_AVAILABLE
Definition: rdkafkacpp.h:345
@ ERR_GROUP_SUBSCRIBED_TO_TOPIC
Definition: rdkafkacpp.h:520
@ ERR_FEATURE_UPDATE_FAILED
Definition: rdkafkacpp.h:542
@ ERR_FENCED_LEADER_EPOCH
Definition: rdkafkacpp.h:494
@ ERR__PARTITION_EOF
Definition: rdkafkacpp.h:224
@ CERT_PUBLIC_KEY
Definition: rdkafkacpp.h:561
@ ERR_DELEGATION_TOKEN_AUTH_DISABLED
Definition: rdkafkacpp.h:468
@ ERR_UNSTABLE_OFFSET_COMMIT
Definition: rdkafkacpp.h:524
@ ERR_INVALID_UPDATE_VERSION
Definition: rdkafkacpp.h:540
@ ERR_INVALID_FETCH_SESSION_EPOCH
Definition: rdkafkacpp.h:488
@ ERR_TOPIC_EXCEPTION
Definition: rdkafkacpp.h:375
@ ERR__KEY_DESERIALIZATION
Definition: rdkafkacpp.h:286
@ ERR__UNKNOWN_PROTOCOL
Definition: rdkafkacpp.h:264
@ ERR_NO_REASSIGNMENT_IN_PROGRESS
Definition: rdkafkacpp.h:517
@ ERR_COORDINATOR_LOAD_IN_PROGRESS
Definition: rdkafkacpp.h:363
Portability: SocketCb callback class
Definition: rdkafkacpp.h:1110
@ ERR_TOPIC_DELETION_DISABLED
Definition: rdkafkacpp.h:492
@ ERR_UNSUPPORTED_FOR_MESSAGE_FORMAT
Definition: rdkafkacpp.h:427
virtual int32_t partitioner_cb(const Topic *topic, const void *key, size_t key_len, int32_t partition_cnt, void *msg_opaque)=0
Variant partitioner callback that gets key as pointer and length instead of as a const std::string *.
@ ERR__PARTIAL
Definition: rdkafkacpp.h:290
@ ERR_REQUEST_TIMED_OUT
Definition: rdkafkacpp.h:349
@ ERR_GROUP_MAX_SIZE_REACHED
Definition: rdkafkacpp.h:508
@ ERR_CONCURRENT_TRANSACTIONS
Definition: rdkafkacpp.h:446
static const int64_t OFFSET_INVALID
Definition: rdkafkacpp.h:1895
@ EVENT_STATS
Definition: rdkafkacpp.h:839
@ ERR_INVALID_REPLICATION_FACTOR
Definition: rdkafkacpp.h:417
@ ERR_STALE_BROKER_EPOCH
Definition: rdkafkacpp.h:500
@ ERR_INVALID_CONFIG
Definition: rdkafkacpp.h:421
@ ERR_INVALID_REQUIRED_ACKS
Definition: rdkafkacpp.h:383
@ ERR__PURGE_INFLIGHT
Definition: rdkafkacpp.h:304
CertificateType
SSL certificate types.
Definition: rdkafkacpp.h:560
Portability: OpenCb callback class
Definition: rdkafkacpp.h:1135