File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 35
35
#include < string>
36
36
#include < vector>
37
37
#include " operation.h"
38
+ #include " compound_operation.h"
38
39
#include " ../configuration_option.h"
39
40
40
41
#if RD_KAFKA_VERSION >= RD_KAFKA_ADMIN_API_SUPPORT_VERSION
@@ -44,6 +45,11 @@ namespace admin {
44
45
45
46
class CreateTopicOperation : public Operation {
46
47
public:
48
+ /* *
49
+ * The rdkafka type used for this operation's handle
50
+ */
51
+ using HandleType = rd_kafka_NewTopic_t;
52
+
47
53
/* *
48
54
* \brief Constructs an instance of a CreateTopicOperation
49
55
*
@@ -112,6 +118,12 @@ class CreateTopicOperation : public Operation {
112
118
HandlePtr handle_;
113
119
};
114
120
121
+ /* *
122
+ * \brief Creates several topics
123
+ */
124
+ using CreateTopicsOperation = CompoundOperation<CreateTopicOperation,
125
+ &rd_kafka_CreateTopics>;
126
+
115
127
} // admin
116
128
} // cppkafka
117
129
You can’t perform that action at this time.
0 commit comments