Header object.
More...
#include <rdkafkacpp.h>
Header object.
This object represents a single Header with a key value pair and an ErrorCode
RdKafka::Headers::Header::Header |
( |
const std::string & |
key, |
|
|
const void * |
value, |
|
|
size_t |
value_size |
|
) |
| |
|
inline |
Header object to encapsulate a single Header.
- Parameters
-
key | the string value for the header key |
value | the bytes of the header value, or NULL |
value_size | the length in bytes of the header value |
RdKafka::Headers::Header::Header |
( |
const std::string & |
key, |
|
|
const void * |
value, |
|
|
size_t |
value_size, |
|
|
const RdKafka::ErrorCode |
err |
|
) |
| |
|
inline |
Header object to encapsulate a single Header.
- Parameters
-
key | the string value for the header key |
value | the bytes of the header value |
value_size | the length in bytes of the header value |
err | the error code if one returned |
RdKafka::Headers::Header::Header |
( |
const Header & |
other | ) |
|
|
inline |
Copy constructor.
- Parameters
-
other | Header to make a copy of. |
Header& RdKafka::Headers::Header::operator= |
( |
const Header & |
other | ) |
|
|
inline |
Assignment operator.
- Parameters
-
other | Header to make a copy of. |
std::string RdKafka::Headers::Header::key |
( |
| ) |
const |
|
inline |
- Returns
- the key/name associated with this Header
const void* RdKafka::Headers::Header::value |
( |
| ) |
const |
|
inline |
- Returns
- returns the binary value, or NULL
const char* RdKafka::Headers::Header::value_string |
( |
| ) |
const |
|
inline |
- Returns
- returns the value casted to a nul-terminated C string, or NULL.
size_t RdKafka::Headers::Header::value_size |
( |
| ) |
const |
|
inline |
- Returns
- Value Size the length of the Value in bytes
RdKafka::ErrorCode RdKafka::Headers::Header::err |
( |
| ) |
const |
|
inline |
- Returns
- the error code of this Header (usually ERR_NO_ERROR)
The documentation for this class was generated from the following file: