public class GroupPatternResolver extends java.lang.Object implements GroupResolver
configure(Map) later. The parameters passed in during configure() determine
the behaviour of the resolver. The class implements the GroupResolver interface.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_PLACEHOLDER_VALUE |
static java.lang.String |
GROUP_ID_PATTERN_CONFIG
The name of the property used to pass in the group id pattern.
|
DEFAULT_PREFIX| Constructor and Description |
|---|
GroupPatternResolver() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(java.util.Map<java.lang.String,?> configs) |
java.lang.String |
getNameFromContext(java.util.Map<java.lang.String,java.lang.String> context)
Fetches the unresolved name from a context that was parsed earlier.
|
java.lang.String |
resolve(java.lang.String group)
Translates the internal representation of name to the external one.
|
java.lang.String |
resolveGroup(java.lang.String group)
Translates the internal representation of consumer group id to the external one.
|
java.lang.String |
unresolve(java.lang.String group)
Translates the external representation of name to the internal one.
|
java.util.Map<java.lang.String,java.lang.String> |
unresolveContext(java.lang.String group)
Translates the external representation of a name to the internal one, returning a map of all
parsed fields.
|
java.lang.String |
unresolveGroup(java.lang.String group)
Translates the external representation of consumer group id to the internal one.
|
public static final java.lang.String GROUP_ID_PATTERN_CONFIG
public static final java.lang.String DEFAULT_PLACEHOLDER_VALUE
public void configure(java.util.Map<java.lang.String,?> configs)
public java.lang.String resolve(java.lang.String group)
Resolverpublic java.lang.String unresolve(java.lang.String group)
Resolverpublic java.util.Map<java.lang.String,java.lang.String> unresolveContext(java.lang.String group)
ResolverunresolveContext in interface Resolvergroup - the external namepublic java.lang.String getNameFromContext(java.util.Map<java.lang.String,java.lang.String> context)
ResolvergetNameFromContext in interface Resolvercontext - the unresolved contextpublic java.lang.String resolveGroup(java.lang.String group)
GroupResolverresolveGroup in interface GroupResolvergroup - the internal consumer group idpublic java.lang.String unresolveGroup(java.lang.String group)
GroupResolverunresolveGroup in interface GroupResolvergroup - the external consumer group idCopyright © 2020 Axual B.V.. All rights reserved.