Package io.aeron.driver
Class DefaultNameResolver
java.lang.Object
io.aeron.driver.DefaultNameResolver
- All Implemented Interfaces:
NameResolver
Use the default host name resolver via
InetAddress.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DefaultNameResolverSingleton instance which can be used to avoid allocation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResolve a name and return the most up to dateInetAddressthat represents the name.voidresolveHook(String resolverName, String hostname, InetAddress resolvedAddress) Deprecated.No longer used for logging.
-
Field Details
-
INSTANCE
Singleton instance which can be used to avoid allocation.
-
-
Constructor Details
-
DefaultNameResolver
public DefaultNameResolver()
-
-
Method Details
-
resolve
Resolve a name and return the most up to dateInetAddressthat represents the name.- Specified by:
resolvein interfaceNameResolver- Parameters:
name- to resolve.uriParamName- that the resolution is for.isReResolution-trueif this is a re-resolution orfalseif initial resolution.- Returns:
- address for the name that most recently represents the name or null if not resolvable currently.
- See Also:
-
resolveHook
@Deprecated public void resolveHook(String resolverName, String hostname, InetAddress resolvedAddress) Deprecated.No longer used for logging.Name resolution hook, useful for logging.- Parameters:
resolverName- used to handle the resolution.hostname- that was resolved.resolvedAddress- the resulting address or null if it can't be resolved.
-