public interface NameResolver
InetAddress.| Modifier and Type | Method and Description |
|---|---|
default int |
doWork(long nowMs)
Perform periodic work for the resolver.
|
default void |
init(CountersReader countersReader,
CounterProvider counterProvider)
Do post construction initialisation of the name resolver.
|
default void |
init(MediaDriver.Context context)
Deprecated.
Use
init(CountersReader, CounterProvider) instead. |
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_NAMEdefault 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 true if initial lookup.@Deprecated default void init(MediaDriver.Context context)
init(CountersReader, CounterProvider) instead.context - for the media driver that the name resolver is running in.init(CountersReader, CounterProvider)default void init(CountersReader countersReader, CounterProvider counterProvider)
countersReader - for finding existing counters.counterProvider - for adding counters.default int doWork(long nowMs)
nowMs - current epoch clock time in millisecondsCopyright © 2014-2023 Real Logic Limited. All Rights Reserved.