public class InetSocketAddressResolver extends AbstractAddressResolver<InetSocketAddress>
AbstractAddressResolver
that resolves InetSocketAddress
.Constructor and Description |
---|
InetSocketAddressResolver(EventExecutor executor,
NameResolver<InetAddress> nameResolver) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes all the resources allocated and used by this resolver.
|
protected boolean |
doIsResolved(InetSocketAddress address)
Invoked by
AbstractAddressResolver.isResolved(SocketAddress) to check if the specified address has been resolved
already. |
protected void |
doResolve(InetSocketAddress unresolvedAddress,
Promise<InetSocketAddress> promise)
Invoked by
AbstractAddressResolver.resolve(SocketAddress) to perform the actual name
resolution. |
protected void |
doResolveAll(InetSocketAddress unresolvedAddress,
Promise<List<InetSocketAddress>> promise)
Invoked by
AbstractAddressResolver.resolveAll(SocketAddress) to perform the actual name
resolution. |
executor, isResolved, isSupported, resolve, resolve, resolveAll, resolveAll
public InetSocketAddressResolver(EventExecutor executor, NameResolver<InetAddress> nameResolver)
executor
- the EventExecutor
which is used to notify the listeners of the Future
returned
by AbstractAddressResolver.resolve(java.net.SocketAddress)
nameResolver
- the NameResolver
used for name resolutionprotected boolean doIsResolved(InetSocketAddress address)
AbstractAddressResolver
AbstractAddressResolver.isResolved(SocketAddress)
to check if the specified address
has been resolved
already.doIsResolved
in class AbstractAddressResolver<InetSocketAddress>
protected void doResolve(InetSocketAddress unresolvedAddress, Promise<InetSocketAddress> promise) throws Exception
AbstractAddressResolver
AbstractAddressResolver.resolve(SocketAddress)
to perform the actual name
resolution.doResolve
in class AbstractAddressResolver<InetSocketAddress>
Exception
protected void doResolveAll(InetSocketAddress unresolvedAddress, Promise<List<InetSocketAddress>> promise) throws Exception
AbstractAddressResolver
AbstractAddressResolver.resolveAll(SocketAddress)
to perform the actual name
resolution.doResolveAll
in class AbstractAddressResolver<InetSocketAddress>
Exception
public void close()
AddressResolver
close
in interface AddressResolver<InetSocketAddress>
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractAddressResolver<InetSocketAddress>
Copyright © 2008–2024 The Netty Project. All rights reserved.