- java.lang.Object
-
- io.netty5.resolver.AbstractAddressResolver<SocketAddress>
-
- io.netty5.resolver.NoopAddressResolver
-
- All Implemented Interfaces:
AddressResolver<SocketAddress>
,Closeable
,AutoCloseable
public class NoopAddressResolver extends AbstractAddressResolver<SocketAddress>
AAddressResolver
that does not perform any resolution but always reports successful resolution. This resolver is useful when name resolution is performed by a handler in a pipeline, such as a proxy handler.
-
-
Constructor Summary
Constructors Constructor Description NoopAddressResolver(EventExecutor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doIsResolved(SocketAddress address)
Invoked byAbstractAddressResolver.isResolved(SocketAddress)
to check if the specifiedaddress
has been resolved already.protected void
doResolve(SocketAddress unresolvedAddress, Promise<SocketAddress> promise)
Invoked byAbstractAddressResolver.resolve(SocketAddress)
to perform the actual name resolution.protected void
doResolveAll(SocketAddress unresolvedAddress, Promise<List<SocketAddress>> promise)
Invoked byAbstractAddressResolver.resolveAll(SocketAddress)
to perform the actual name resolution.-
Methods inherited from class io.netty5.resolver.AbstractAddressResolver
close, executor, isResolved, isSupported, resolve, resolve, resolveAll, resolveAll
-
-
-
-
Constructor Detail
-
NoopAddressResolver
public NoopAddressResolver(EventExecutor executor)
-
-
Method Detail
-
doIsResolved
protected boolean doIsResolved(SocketAddress address)
Description copied from class:AbstractAddressResolver
Invoked byAbstractAddressResolver.isResolved(SocketAddress)
to check if the specifiedaddress
has been resolved already.- Specified by:
doIsResolved
in classAbstractAddressResolver<SocketAddress>
-
doResolve
protected void doResolve(SocketAddress unresolvedAddress, Promise<SocketAddress> promise) throws Exception
Description copied from class:AbstractAddressResolver
Invoked byAbstractAddressResolver.resolve(SocketAddress)
to perform the actual name resolution.- Specified by:
doResolve
in classAbstractAddressResolver<SocketAddress>
- Throws:
Exception
-
doResolveAll
protected void doResolveAll(SocketAddress unresolvedAddress, Promise<List<SocketAddress>> promise) throws Exception
Description copied from class:AbstractAddressResolver
Invoked byAbstractAddressResolver.resolveAll(SocketAddress)
to perform the actual name resolution.- Specified by:
doResolveAll
in classAbstractAddressResolver<SocketAddress>
- Throws:
Exception
-
-