Top Description Methods
io.netty5.resolver

public Interface AddressResolver<T extends SocketAddress>

extends Closeable
Known Direct Implementers
io.netty5.resolver.AbstractAddressResolver
Imports
io.netty5.util.concurrent.Future, .Promise, java.io.Closeable, java.net.SocketAddress, java.nio.channels.UnsupportedAddressTypeException, java.util.List

Resolves a possibility unresolved SocketAddress.

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 boolean
isResolved(SocketAddress address)

Returns true if and only if the specified address has been resolved.

public boolean
isSupported(SocketAddress address)

Returns true if and only if the specified address is supported by this resolved.

public Future<T>

Returns:

the SocketAddress as the result of the resolution
resolve
(SocketAddress
the address to resolve
address
)

Resolves the specified address.

public Future<T>

Returns:

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

Resolves the specified address.

public Future<List<T>>

Returns:

the list of the SocketAddresses as the result of the resolution
resolveAll
(SocketAddress
the address to resolve
address
)

Resolves the specified address.

public Future<List<T>>

Returns:

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

Resolves the specified 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
isResolvedback to summary
public boolean isResolved(SocketAddress address)

Returns true if and only if the specified address has been resolved.

Exceptions
UnsupportedAddressTypeException:
if the specified address is not supported by this resolver
isSupportedback to summary
public boolean isSupported(SocketAddress address)

Returns true if and only if the specified address is supported by this resolved.

resolveback to summary
public 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.

Parameters
address:SocketAddress

the address to resolve

Returns:Future<T>

the SocketAddress as the result of the resolution

resolveback to summary
public 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.

Parameters
address:SocketAddress

the address to resolve

promise:Promise<T>

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

Returns:Future<T>

the SocketAddress as the result of the resolution

resolveAllback to summary
public 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.

Parameters
address:SocketAddress

the address to resolve

Returns:Future<List<T>>

the list of the SocketAddresses as the result of the resolution

resolveAllback to summary
public Future<List<T>> resolveAll(SocketAddress address, Promise<List<T>> promise)

Resolves the specified address. If the specified address is resolved already, this method does nothing but returning the original address.

Parameters
address:SocketAddress

the address 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 SocketAddresses as the result of the resolution