Package com.hazelcast.config.matcher
Class RegexConfigPatternMatcher
java.lang.Object
com.hazelcast.config.matcher.RegexConfigPatternMatcher
- All Implemented Interfaces:
ConfigPatternMatcher
This
ConfigPatternMatcher
uses Java regular expressions for matching.
Throws InvalidConfigurationException
is multiple configurations are found.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RegexConfigPatternMatcher
public RegexConfigPatternMatcher() -
RegexConfigPatternMatcher
public RegexConfigPatternMatcher(int flags)
-
-
Method Details
-
matches
public String matches(Iterable<String> configPatterns, String itemName) throws InvalidConfigurationException Description copied from interface:ConfigPatternMatcher
Returns the best match for an item name out of a list of configuration patterns.- Specified by:
matches
in interfaceConfigPatternMatcher
- Parameters:
configPatterns
- list of known configuration patternsitemName
- item name to match- Returns:
- a key of configPatterns which matches
the item name or
null
if there is no match - Throws:
InvalidConfigurationException
- if ambiguous configurations are found
-
equals
-
hashCode
public int hashCode()
-