public class RegexConfigPatternMatcher extends Object implements ConfigPatternMatcher
ConfigPatternMatcher
uses Java regular expressions for matching.
Throws InvalidConfigurationException
is multiple configurations are found.
Constructor and Description |
---|
RegexConfigPatternMatcher() |
RegexConfigPatternMatcher(int flags) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
String |
matches(Iterable<String> configPatterns,
String itemName)
Returns the best match for an item name out of a list of configuration patterns.
|
public RegexConfigPatternMatcher()
public RegexConfigPatternMatcher(int flags)
public String matches(Iterable<String> configPatterns, String itemName) throws InvalidConfigurationException
ConfigPatternMatcher
matches
in interface ConfigPatternMatcher
configPatterns
- list of known configuration patternsitemName
- item name to matchnull
if there
is no matchInvalidConfigurationException
- if ambiguous configurations are foundCopyright © 2020 Hazelcast, Inc.. All rights reserved.