Home / Type/ AddressResolver Type — netty Architecture

AddressResolver Type — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  030c5d89_ec21_1d4d_babe_6f7d5590df13["AddressResolver"]
  8d730ebd_0be0_f49e_91c8_0fb4c069a3f5["AddressResolver.java"]
  030c5d89_ec21_1d4d_babe_6f7d5590df13 -->|defined in| 8d730ebd_0be0_f49e_91c8_0fb4c069a3f5
  style 030c5d89_ec21_1d4d_babe_6f7d5590df13 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

resolver/src/main/java/io/netty/resolver/AddressResolver.java lines 29–90

public interface AddressResolver<T extends SocketAddress> extends Closeable {

  /**
   * Returns {@code true} if and only if the specified address is supported by this resolved.
   */
  boolean isSupported(SocketAddress address);

  /**
   * Returns {@code true} if and only if the specified address has been resolved.
   *
   * @throws UnsupportedAddressTypeException if the specified address is not supported by this resolver
   */
  boolean isResolved(SocketAddress address);

  /**
   * Resolves the specified address. If the specified address is resolved already, this method does nothing
   * but returning the original address.
   *
   * @param address the address to resolve
   *
   * @return the {@link SocketAddress} as the result of the resolution
   */
  Future<T> resolve(SocketAddress address);

  /**
   * Resolves the specified address. If the specified address is resolved already, this method does nothing
   * but returning the original address.
   *
   * @param address the address to resolve
   * @param promise the {@link Promise} which will be fulfilled when the name resolution is finished
   *
   * @return the {@link SocketAddress} as the result of the resolution
   */
  Future<T> resolve(SocketAddress address, Promise<T> promise);

  /**
   * Resolves the specified address. If the specified address is resolved already, this method does nothing
   * but returning the original address.
   *
   * @param address the address to resolve
   *
   * @return the list of the {@link SocketAddress}es as the result of the resolution
   */
  Future<List<T>> resolveAll(SocketAddress address);

  /**
   * Resolves the specified address. If the specified address is resolved already, this method does nothing
   * but returning the original address.
   *
   * @param address the address to resolve
   * @param promise the {@link Promise} which will be fulfilled when the name resolution is finished
   *
   * @return the list of the {@link SocketAddress}es as the result of the resolution
   */
  Future<List<T>> resolveAll(SocketAddress address, Promise<List<T>> promise);

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

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free