Showing content from http://morganstanley.github.io/modern-cpp-kafka/doxygen/classKAFKA__API_1_1Properties.html below:
Modern C++ Kafka API: KAFKA_API::Properties Class Reference
The properties for Kafka clients. More...
#include <Properties.h>
using PropertiesMap = std::map< std::string, ValueType > Properties (const Properties &)=default Properties (PropertiesMap kvMap) bool operator== (const Properties &rhs) const template<class T > Properties & put (const std::string &key, const T &value) Set a property. More...
void remove (const std::string &key) Remove the property (if one exists).
bool contains (const std::string &key) const Check whether the map contains a property.
template<class T > T & get (const std::string &key) const Get a property reference. More...
Optional< std::string > getProperty (const std::string &key) const Get a property.
void eraseProperty (const std::string &key) Remove a property.
std::string toString () const const PropertiesMap & map () const Get all properties with a map.
The properties for Kafka clients.
◆ get()
template<class T >
T& KAFKA_API::Properties::get ( const std::string & key ) const inline
Get a property reference.
If the property doesn't exist, an execption would be thrown.
◆ put()
template<class T >
Properties& KAFKA_API::Properties::put ( const std::string & key, const T & value ) inline
Set a property.
If the map previously contained a mapping for the key, the old value is replaced by the specified value.
The documentation for this class was generated from the following file:
- /home/runner/work/modern-cpp-kafka/modern-cpp-kafka/include/kafka/Properties.h
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4