public interface NameResolver
InetAddress
.Modifier and Type | Method and Description |
---|---|
default int |
doWork(long nowMs)
Perform periodic work for the resolver.
|
default String |
lookup(String name,
String uriParamName,
boolean isReLookup)
Lookup the name and return a string of the form name:port that represents the endpoint or control param
of the URI.
|
InetAddress |
resolve(String name,
String uriParamName,
boolean isReResolution)
Resolve a name and return the most up to date
InetAddress that represents the name. |
InetAddress resolve(String name, String uriParamName, boolean isReResolution)
InetAddress
that represents the name.name
- to resolve.uriParamName
- that the resolution is for.isReResolution
- true if this is a re-resolution or false if initial resolution.CommonContext.ENDPOINT_PARAM_NAME
,
CommonContext.MDC_CONTROL_PARAM_NAME
default String lookup(String name, String uriParamName, boolean isReLookup)
name
- to lookupuriParamName
- that the lookup is for.isReLookup
- true if this is a re-lookup or false if initial lookup.default int doWork(long nowMs)
nowMs
- current epoch clock time in millisecondsCopyright © 2014-2020 Real Logic Limited. All Rights Reserved.