![]() |
Hazelcast C++ Client
Hazelcast C++ Client Library
|
The ConfigPatternMatcher provides a strategy to match an item name to a configuration pattern. More...
#include <config_pattern_matcher.h>
Public Member Functions | |
virtual std::shared_ptr< std::string > | matches (const std::vector< std::string > &config_patterns, const std::string &item_name) const =0 |
Returns the best match for an item name out of a list of configuration patterns. More... | |
The ConfigPatternMatcher provides a strategy to match an item name to a configuration pattern.
It is used on each Config.getXXXConfig() and ClientConfig.getXXXConfig() call for map, list, queue, set, executor, topic, etc., so for example
is the name of a map and configPatterns
are all defined map configurations.
If no configuration is found by the matcher it should return
. In this case the default config will be used for this item then. If multiple configurations are found by the matcher a exception::ConfigurationException should be thrown.
The default matcher is hazelcast::config::matcher::MatchingPointConfigPatternMatcher.
Definition at line 40 of file config_pattern_matcher.h.
|
pure virtual |
Returns the best match for an item name out of a list of configuration patterns.
configPatterns | list of configuration patterns |
itemName | item name to match |
ConfigurationException | if ambiguous configurations are found |
Implemented in hazelcast::client::config::matcher::matching_point_config_pattern_matcher.