Top Description Methods
io.netty5.resolver

public Interface NameResolver<T>

extends Closeable
Known Direct Implementers
io.netty5.resolver.SimpleNameResolver
Imports
io.netty5.util.concurrent.Future, .Promise, java.io.Closeable, java.util.List

Resolves an arbitrary string that represents the name of an endpoint into an address.

Method Summary

Modifier and TypeMethod and Description
public void
close()

Redeclares java.io.Closeable.close.

Closes all the resources allocated and used by this resolver.
public Future<T>

Returns:

the address as the result of the resolution
resolve
(String
the name to resolve
inetHost
)

Resolves the specified name into an address.

public Future<T>

Returns:

the address as the result of the resolution
resolve
(String
the name to resolve
inetHost
,
Promise<T>
the Promise which will be fulfilled when the name resolution is finished
promise
)

Resolves the specified name into an address.

public Future<List<T>>

Returns:

the list of the address as the result of the resolution
resolveAll
(String
the name to resolve
inetHost
)

Resolves the specified host name and port into a list of address.

public Future<List<T>>

Returns:

the list of the address as the result of the resolution
resolveAll
(String
the name to resolve
inetHost
,
Promise<List<T>>
the Promise which will be fulfilled when the name resolution is finished
promise
)

Resolves the specified host name and port into a list of address.

Method Detail

closeback to summary
public void close()

Redeclares java.io.Closeable.close.

Closes all the resources allocated and used by this resolver.

Annotations
@Override
resolveback to summary
public Future<T> resolve(String inetHost)

Resolves the specified name into an address.

Parameters
inetHost:String

the name to resolve

Returns:Future<T>

the address as the result of the resolution

resolveback to summary
public Future<T> resolve(String inetHost, Promise<T> promise)

Resolves the specified name into an address.

Parameters
inetHost:String

the name to resolve

promise:Promise<T>

the Promise which will be fulfilled when the name resolution is finished

Returns:Future<T>

the address as the result of the resolution

resolveAllback to summary
public Future<List<T>> resolveAll(String inetHost)

Resolves the specified host name and port into a list of address.

Parameters
inetHost:String

the name to resolve

Returns:Future<List<T>>

the list of the address as the result of the resolution

resolveAllback to summary
public Future<List<T>> resolveAll(String inetHost, Promise<List<T>> promise)

Resolves the specified host name and port into a list of address.

Parameters
inetHost:String

the name to resolve

promise:Promise<List<T>>

the Promise which will be fulfilled when the name resolution is finished

Returns:Future<List<T>>

the list of the address as the result of the resolution