public interface ConfigPatternMatcher
itemName
is the name of a map and configPatterns
are all defined
map configurations.
If no configuration is found by the matcher it should return null. In this case the default config will be used
for this item then. If multiple configurations are found by the matcher a ConfigurationException
should be thrown.
Since Hazelcast 3.5 the default matcher is MatchingPointConfigPatternMatcher
.Modifier and Type | Method and Description |
---|---|
String |
matches(Iterable<String> configPatterns,
String itemName)
Returns the best match for an item name out of a list of configuration patterns.
|
String matches(Iterable<String> configPatterns, String itemName) throws ConfigurationException
configPatterns
- list of configuration patternsitemName
- item name to matchConfigurationException
- if ambiguous configurations are foundCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.