Modern C++ Kafka API
AdminCommon.h
1 #pragma once
2 
3 #include <kafka/Project.h>
4 
5 #include <kafka/Error.h>
6 #include <kafka/Types.h>
7 
8 
9 namespace KAFKA_API { namespace clients { namespace admin {
10 
15 {
16  explicit CreateTopicsResult(const Error& err): error(err) {}
17 
22 };
23 
28 {
29  explicit DeleteTopicsResult(const Error& err): error(err) {}
30 
35 };
36 
41 {
42  explicit DeleteRecordsResult(const Error& err): error(err) {}
43 
48 };
49 
54 {
55  explicit ListTopicsResult(const Error& err): error(err) {}
56  explicit ListTopicsResult(Topics names): topics(std::move(names)) {}
57 
62 
66  Topics topics;
67 };
68 
69 } } } // end of KAFKA_API::clients::admin
70 
Unified error type.
Definition: Error.h:32
The result of AdminClient::createTopics().
Definition: AdminCommon.h:15
Error error
The result error.
Definition: AdminCommon.h:21
The result of AdminClient::deleteRecords().
Definition: AdminCommon.h:41
Error error
The result error.
Definition: AdminCommon.h:47
The result of AdminClient::deleteTopics().
Definition: AdminCommon.h:28
Error error
The result error.
Definition: AdminCommon.h:34
The result of AdminClient::listTopics().
Definition: AdminCommon.h:54
Error error
The result error.
Definition: AdminCommon.h:61
Topics topics
The topics fetched.
Definition: AdminCommon.h:66