Home / Type/ NameResolver Type — netty Architecture

NameResolver Type — netty Architecture

Architecture documentation for the NameResolver type/interface in NameResolver.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9f64a94b_2563_3722_8d23_c052def24961["NameResolver"]
  8f082059_a5f5_7ca6_38b5_34e4ac950c6c["NameResolver.java"]
  9f64a94b_2563_3722_8d23_c052def24961 -->|defined in| 8f082059_a5f5_7ca6_38b5_34e4ac950c6c
  style 9f64a94b_2563_3722_8d23_c052def24961 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

resolver/src/main/java/io/netty/resolver/NameResolver.java lines 28–73

public interface NameResolver<T> extends Closeable {

    /**
     * Resolves the specified name into an address.
     *
     * @param inetHost the name to resolve
     *
     * @return the address as the result of the resolution
     */
    Future<T> resolve(String inetHost);

    /**
     * Resolves the specified name into an address.
     *
     * @param inetHost the name to resolve
     * @param promise the {@link Promise} which will be fulfilled when the name resolution is finished
     *
     * @return the address as the result of the resolution
     */
    Future<T> resolve(String inetHost, Promise<T> promise);

    /**
     * Resolves the specified host name and port into a list of address.
     *
     * @param inetHost the name to resolve
     *
     * @return the list of the address as the result of the resolution
     */
    Future<List<T>> resolveAll(String inetHost);

    /**
     * Resolves the specified host name and port into a list of address.
     *
     * @param inetHost the name to resolve
     * @param promise the {@link Promise} which will be fulfilled when the name resolution is finished
     *
     * @return the list of the address as the result of the resolution
     */
    Future<List<T>> resolveAll(String inetHost, Promise<List<T>> promise);

    /**
     * Closes all the resources allocated and used by this resolver.
     */
    @Override
    void close();
}

Frequently Asked Questions

What is the NameResolver type?
NameResolver is a type/interface in the netty codebase, defined in resolver/src/main/java/io/netty/resolver/NameResolver.java.
Where is NameResolver defined?
NameResolver is defined in resolver/src/main/java/io/netty/resolver/NameResolver.java at line 28.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free