Remove @UnstableApi annotation from resolver-* (#9952)

Motivation:

The resolver API and implementations should be considered stable by now so we should not mark these with @UnstableApi

Modifications:

Remove @UnstableApi annotation from API and implementation of resolver

Result:

Make it explicit that the API is considered stable
This commit is contained in:
Norman Maurer 2020-01-15 09:10:13 +01:00
parent de690daccc
commit 776e38af88
52 changed files with 0 additions and 117 deletions

View File

@ -17,7 +17,4 @@
/**
* MacOS specific nameserver resolution.
*/
@UnstableApi
package io.netty.resolver.dns.macos;
import io.netty.util.internal.UnstableApi;

View File

@ -16,14 +16,12 @@
package io.netty.resolver.dns;
import io.netty.channel.EventLoop;
import io.netty.util.internal.UnstableApi;
import java.net.InetSocketAddress;
/**
* Cache which stores the nameservers that should be used to resolve a specific hostname.
*/
@UnstableApi
public interface AuthoritativeDnsServerCache {
/**

View File

@ -17,7 +17,6 @@ package io.netty.resolver.dns;
import io.netty.channel.EventLoop;
import io.netty.handler.codec.dns.DnsRecord;
import io.netty.util.internal.UnstableApi;
import java.net.InetAddress;
import java.net.InetSocketAddress;
@ -30,7 +29,6 @@ import static java.util.Objects.requireNonNull;
* {@link AuthoritativeDnsServerCache} implementation which delegates all operations to a wrapped {@link DnsCache}.
* This implementation is only present to preserve a upgrade story.
*/
@UnstableApi
final class AuthoritativeDnsServerCacheAdapter implements AuthoritativeDnsServerCache {
private static final DnsRecord[] EMPTY = new DnsRecord[0];

View File

@ -18,7 +18,6 @@ package io.netty.resolver.dns;
import io.netty.channel.ChannelFuture;
import io.netty.handler.codec.dns.DnsQuestion;
import io.netty.handler.codec.dns.DnsResponseCode;
import io.netty.util.internal.UnstableApi;
import java.net.InetSocketAddress;
import java.util.List;
@ -28,7 +27,6 @@ import static java.util.Objects.requireNonNull;
/**
* Combines two {@link DnsQueryLifecycleObserver} into a single {@link DnsQueryLifecycleObserver}.
*/
@UnstableApi
public final class BiDnsQueryLifecycleObserver implements DnsQueryLifecycleObserver {
private final DnsQueryLifecycleObserver a;
private final DnsQueryLifecycleObserver b;

View File

@ -16,14 +16,12 @@
package io.netty.resolver.dns;
import io.netty.handler.codec.dns.DnsQuestion;
import io.netty.util.internal.UnstableApi;
import static java.util.Objects.requireNonNull;
/**
* Combines two {@link DnsQueryLifecycleObserverFactory} into a single {@link DnsQueryLifecycleObserverFactory}.
*/
@UnstableApi
public final class BiDnsQueryLifecycleObserverFactory implements DnsQueryLifecycleObserverFactory {
private final DnsQueryLifecycleObserverFactory a;
private final DnsQueryLifecycleObserverFactory b;

View File

@ -16,7 +16,6 @@
package io.netty.resolver.dns;
import io.netty.channel.EventLoop;
import io.netty.util.internal.UnstableApi;
import java.net.InetSocketAddress;
import java.util.Comparator;
@ -30,7 +29,6 @@ import static java.util.Objects.requireNonNull;
/**
* Default implementation of {@link AuthoritativeDnsServerCache}, backed by a {@link ConcurrentMap}.
*/
@UnstableApi
public class DefaultAuthoritativeDnsServerCache implements AuthoritativeDnsServerCache {
private final int minTtl;

View File

@ -18,7 +18,6 @@ package io.netty.resolver.dns;
import io.netty.channel.EventLoop;
import io.netty.handler.codec.dns.DnsRecord;
import io.netty.util.internal.StringUtil;
import io.netty.util.internal.UnstableApi;
import java.net.InetAddress;
import java.util.Collections;
@ -32,7 +31,6 @@ import static java.util.Objects.requireNonNull;
* Default implementation of {@link DnsCache}, backed by a {@link ConcurrentMap}.
* If any additional {@link DnsRecord} is used, no caching takes place.
*/
@UnstableApi
public class DefaultDnsCache implements DnsCache {
private final Cache<DefaultDnsCacheEntry> resolveCache = new Cache<DefaultDnsCacheEntry>() {

View File

@ -17,7 +17,6 @@ package io.netty.resolver.dns;
import io.netty.channel.EventLoop;
import io.netty.util.AsciiString;
import io.netty.util.internal.UnstableApi;
import java.util.List;
@ -28,7 +27,6 @@ import static java.util.Objects.requireNonNull;
/**
* Default implementation of a {@link DnsCnameCache}.
*/
@UnstableApi
public final class DefaultDnsCnameCache implements DnsCnameCache {
private final int minTtl;
private final int maxTtl;

View File

@ -18,7 +18,6 @@ package io.netty.resolver.dns;
import io.netty.util.NetUtil;
import io.netty.util.internal.PlatformDependent;
import io.netty.util.internal.SocketUtils;
import io.netty.util.internal.UnstableApi;
import io.netty.util.internal.logging.InternalLogger;
import io.netty.util.internal.logging.InternalLoggerFactory;
@ -37,7 +36,6 @@ import static io.netty.resolver.dns.DnsServerAddresses.sequential;
* <p>
* This may use the JDK's blocking DNS resolution to bootstrap the default DNS server addresses.
*/
@UnstableApi
public final class DefaultDnsServerAddressStreamProvider implements DnsServerAddressStreamProvider {
private static final InternalLogger logger =
InternalLoggerFactory.getInstance(DefaultDnsServerAddressStreamProvider.class);

View File

@ -26,7 +26,6 @@ import io.netty.resolver.NameResolver;
import io.netty.util.concurrent.EventExecutor;
import io.netty.util.concurrent.Promise;
import io.netty.util.internal.StringUtil;
import io.netty.util.internal.UnstableApi;
import java.net.InetAddress;
import java.net.InetSocketAddress;
@ -37,7 +36,6 @@ import java.util.concurrent.ConcurrentMap;
/**
* A {@link AddressResolverGroup} of {@link DnsNameResolver}s.
*/
@UnstableApi
public class DnsAddressResolverGroup extends AddressResolverGroup<InetSocketAddress> {
private final DnsNameResolverBuilder dnsResolverBuilder;

View File

@ -17,7 +17,6 @@ package io.netty.resolver.dns;
import io.netty.channel.EventLoop;
import io.netty.handler.codec.dns.DnsRecord;
import io.netty.util.internal.UnstableApi;
import java.net.InetAddress;
import java.util.List;
@ -25,7 +24,6 @@ import java.util.List;
/**
* A cache for DNS resolution entries.
*/
@UnstableApi
public interface DnsCache {
/**

View File

@ -15,14 +15,11 @@
*/
package io.netty.resolver.dns;
import io.netty.util.internal.UnstableApi;
import java.net.InetAddress;
/**
* Represents the results from a previous DNS query which can be cached.
*/
@UnstableApi
public interface DnsCacheEntry {
/**
* Get the resolved address.

View File

@ -16,12 +16,10 @@
package io.netty.resolver.dns;
import io.netty.channel.EventLoop;
import io.netty.util.internal.UnstableApi;
/**
* A cache for {@code CNAME}s.
*/
@UnstableApi
public interface DnsCnameCache {
/**

View File

@ -59,7 +59,6 @@ import io.netty.util.concurrent.Promise;
import io.netty.util.internal.EmptyArrays;
import io.netty.util.internal.PlatformDependent;
import io.netty.util.internal.StringUtil;
import io.netty.util.internal.UnstableApi;
import io.netty.util.internal.logging.InternalLogger;
import io.netty.util.internal.logging.InternalLoggerFactory;
@ -88,7 +87,6 @@ import static java.util.Objects.requireNonNull;
/**
* A DNS-based {@link InetNameResolver}.
*/
@UnstableApi
public class DnsNameResolver extends InetNameResolver {
private static final InternalLogger logger = InternalLoggerFactory.getInstance(DnsNameResolver.class);

View File

@ -24,7 +24,6 @@ import io.netty.channel.socket.SocketChannel;
import io.netty.resolver.HostsFileEntriesResolver;
import io.netty.resolver.ResolvedAddressTypes;
import io.netty.util.concurrent.Future;
import io.netty.util.internal.UnstableApi;
import java.util.ArrayList;
import java.util.Arrays;
@ -37,7 +36,6 @@ import static java.util.Objects.requireNonNull;
/**
* A {@link DnsNameResolver} builder.
*/
@UnstableApi
public final class DnsNameResolverBuilder {
private EventLoop eventLoop;
private ChannelFactory<? extends DatagramChannel> channelFactory;

View File

@ -19,14 +19,12 @@ import static java.util.Objects.requireNonNull;
import io.netty.handler.codec.dns.DnsQuestion;
import io.netty.util.internal.EmptyArrays;
import io.netty.util.internal.UnstableApi;
import java.net.InetSocketAddress;
/**
* A {@link RuntimeException} raised when {@link DnsNameResolver} failed to perform a successful query.
*/
@UnstableApi
public class DnsNameResolverException extends RuntimeException {
private static final long serialVersionUID = -8826717909627131850L;

View File

@ -16,7 +16,6 @@
package io.netty.resolver.dns;
import io.netty.handler.codec.dns.DnsQuestion;
import io.netty.util.internal.UnstableApi;
import java.net.InetSocketAddress;
@ -24,7 +23,6 @@ import java.net.InetSocketAddress;
* A {@link DnsNameResolverException} raised when {@link DnsNameResolver} failed to perform a successful query because
* of an timeout. In this case you may want to retry the operation.
*/
@UnstableApi
public final class DnsNameResolverTimeoutException extends DnsNameResolverException {
private static final long serialVersionUID = -8826717969627131854L;

View File

@ -19,7 +19,6 @@ import io.netty.channel.ChannelFuture;
import io.netty.handler.codec.dns.DnsQuestion;
import io.netty.handler.codec.dns.DnsRecordType;
import io.netty.handler.codec.dns.DnsResponseCode;
import io.netty.util.internal.UnstableApi;
import java.net.InetSocketAddress;
import java.util.List;
@ -43,7 +42,6 @@ import java.util.List;
* return an object of type {@link DnsQueryLifecycleObserver}. Implementations may use this to build a query tree to
* understand the "sub queries" generated by a single query.
*/
@UnstableApi
public interface DnsQueryLifecycleObserver {
/**
* The query has been written.

View File

@ -16,12 +16,10 @@
package io.netty.resolver.dns;
import io.netty.handler.codec.dns.DnsQuestion;
import io.netty.util.internal.UnstableApi;
/**
* Used to generate new instances of {@link DnsQueryLifecycleObserver}.
*/
@UnstableApi
public interface DnsQueryLifecycleObserverFactory {
/**
* Create a new instance of a {@link DnsQueryLifecycleObserver}. This will be called at the start of a new query.

View File

@ -16,14 +16,11 @@
package io.netty.resolver.dns;
import io.netty.util.internal.UnstableApi;
import java.net.InetSocketAddress;
/**
* An infinite stream of DNS server addresses.
*/
@UnstableApi
public interface DnsServerAddressStream {
/**
* Retrieves the next DNS server address from the stream.

View File

@ -15,8 +15,6 @@
*/
package io.netty.resolver.dns;
import io.netty.util.internal.UnstableApi;
/**
* Provides an opportunity to override which {@link DnsServerAddressStream} is used to resolve a specific hostname.
* <p>
@ -24,7 +22,6 @@ import io.netty.util.internal.UnstableApi;
* <a href="https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man5/resolver.5.html">
* /etc/resolver</a>.
*/
@UnstableApi
public interface DnsServerAddressStreamProvider {
/**
* Ask this provider for the name servers to query for {@code hostname}.

View File

@ -16,7 +16,6 @@
package io.netty.resolver.dns;
import io.netty.util.internal.PlatformDependent;
import io.netty.util.internal.UnstableApi;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;
@ -24,7 +23,6 @@ import java.util.concurrent.atomic.AtomicLong;
/**
* Utility methods related to {@link DnsServerAddressStreamProvider}.
*/
@UnstableApi
public final class DnsServerAddressStreamProviders {
// We use 5 minutes which is the same as what OpenJDK is using in sun.net.dns.ResolverConfigurationImpl.
private static final long REFRESH_INTERVAL = TimeUnit.MINUTES.toNanos(5);

View File

@ -18,8 +18,6 @@ package io.netty.resolver.dns;
import static java.util.Objects.requireNonNull;
import io.netty.util.internal.UnstableApi;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.Collection;
@ -28,7 +26,6 @@ import java.util.List;
/**
* Provides an infinite sequence of DNS server addresses to {@link DnsNameResolver}.
*/
@UnstableApi
@SuppressWarnings("IteratorNextCanNotThrowNoSuchElementException")
public abstract class DnsServerAddresses {
/**

View File

@ -15,15 +15,12 @@
*/
package io.netty.resolver.dns;
import io.netty.util.internal.UnstableApi;
import java.util.List;
/**
* A {@link DnsServerAddressStreamProvider} which iterates through a collection of
* {@link DnsServerAddressStreamProvider} until the first non-{@code null} result is found.
*/
@UnstableApi
public final class MultiDnsServerAddressStreamProvider implements DnsServerAddressStreamProvider {
private final DnsServerAddressStreamProvider[] providers;

View File

@ -16,14 +16,12 @@
package io.netty.resolver.dns;
import io.netty.channel.EventLoop;
import io.netty.util.internal.UnstableApi;
import java.net.InetSocketAddress;
/**
* A noop {@link AuthoritativeDnsServerCache} that actually never caches anything.
*/
@UnstableApi
public final class NoopAuthoritativeDnsServerCache implements AuthoritativeDnsServerCache {
public static final NoopAuthoritativeDnsServerCache INSTANCE = new NoopAuthoritativeDnsServerCache();

View File

@ -17,7 +17,6 @@ package io.netty.resolver.dns;
import io.netty.channel.EventLoop;
import io.netty.handler.codec.dns.DnsRecord;
import io.netty.util.internal.UnstableApi;
import java.net.InetAddress;
import java.util.Collections;
@ -26,7 +25,6 @@ import java.util.List;
/**
* A noop DNS cache that actually never caches anything.
*/
@UnstableApi
public final class NoopDnsCache implements DnsCache {
public static final NoopDnsCache INSTANCE = new NoopDnsCache();

View File

@ -16,9 +16,7 @@
package io.netty.resolver.dns;
import io.netty.channel.EventLoop;
import io.netty.util.internal.UnstableApi;
@UnstableApi
public final class NoopDnsCnameCache implements DnsCnameCache {
public static final NoopDnsCnameCache INSTANCE = new NoopDnsCnameCache();

View File

@ -16,9 +16,7 @@
package io.netty.resolver.dns;
import io.netty.handler.codec.dns.DnsQuestion;
import io.netty.util.internal.UnstableApi;
@UnstableApi
public final class NoopDnsQueryLifecycleObserverFactory implements DnsQueryLifecycleObserverFactory {
public static final NoopDnsQueryLifecycleObserverFactory INSTANCE = new NoopDnsQueryLifecycleObserverFactory();

View File

@ -23,7 +23,6 @@ import io.netty.resolver.AddressResolver;
import io.netty.resolver.AddressResolverGroup;
import io.netty.resolver.NameResolver;
import io.netty.resolver.RoundRobinInetAddressResolver;
import io.netty.util.internal.UnstableApi;
import java.net.InetAddress;
import java.net.InetSocketAddress;
@ -33,7 +32,6 @@ import java.net.InetSocketAddress;
* multiple are provided by the nameserver. This is ideal for use in applications that use a pool of connections, for
* which connecting to a single resolved address would be inefficient.
*/
@UnstableApi
public class RoundRobinDnsAddressResolverGroup extends DnsAddressResolverGroup {
public RoundRobinDnsAddressResolverGroup(DnsNameResolverBuilder dnsResolverBuilder) {

View File

@ -15,8 +15,6 @@
*/
package io.netty.resolver.dns;
import io.netty.util.internal.UnstableApi;
import java.net.InetSocketAddress;
import static io.netty.resolver.dns.DnsServerAddresses.sequential;
@ -24,7 +22,6 @@ import static io.netty.resolver.dns.DnsServerAddresses.sequential;
/**
* A {@link DnsServerAddressStreamProvider} which is backed by a sequential list of DNS servers.
*/
@UnstableApi
public final class SequentialDnsServerAddressStreamProvider extends UniSequentialDnsServerAddressStreamProvider {
/**
* Create a new instance.

View File

@ -15,14 +15,11 @@
*/
package io.netty.resolver.dns;
import io.netty.util.internal.UnstableApi;
import java.net.InetSocketAddress;
/**
* A {@link DnsServerAddressStreamProvider} which always uses a single DNS server for resolution.
*/
@UnstableApi
public final class SingletonDnsServerAddressStreamProvider extends UniSequentialDnsServerAddressStreamProvider {
/**
* Create a new instance.

View File

@ -17,7 +17,6 @@ package io.netty.resolver.dns;
import io.netty.util.NetUtil;
import io.netty.util.internal.SocketUtils;
import io.netty.util.internal.UnstableApi;
import io.netty.util.internal.logging.InternalLogger;
import io.netty.util.internal.logging.InternalLoggerFactory;
@ -45,7 +44,6 @@ import static java.util.Objects.requireNonNull;
* <a href="https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man5/resolver.5.html">
* /etc/resolver</a> to respect the system default domain servers.
*/
@UnstableApi
public final class UnixResolverDnsServerAddressStreamProvider implements DnsServerAddressStreamProvider {
private static final InternalLogger logger =
InternalLoggerFactory.getInstance(UnixResolverDnsServerAddressStreamProvider.class);

View File

@ -18,7 +18,4 @@
* An alternative to Java's built-in domain name lookup mechanism that resolves a domain name asynchronously,
* which supports the queries of an arbitrary DNS record type as well.
*/
@UnstableApi
package io.netty.resolver.dns;
import io.netty.util.internal.UnstableApi;

View File

@ -20,7 +20,6 @@ import io.netty.util.concurrent.EventExecutor;
import io.netty.util.concurrent.Future;
import io.netty.util.concurrent.Promise;
import io.netty.util.internal.TypeParameterMatcher;
import io.netty.util.internal.UnstableApi;
import java.net.SocketAddress;
import java.nio.channels.UnsupportedAddressTypeException;
@ -32,7 +31,6 @@ import static java.util.Objects.requireNonNull;
/**
* A skeletal {@link AddressResolver} implementation.
*/
@UnstableApi
public abstract class AbstractAddressResolver<T extends SocketAddress> implements AddressResolver<T> {
private final EventExecutor executor;

View File

@ -17,7 +17,6 @@ package io.netty.resolver;
import io.netty.util.concurrent.Future;
import io.netty.util.concurrent.Promise;
import io.netty.util.internal.UnstableApi;
import java.io.Closeable;
import java.net.SocketAddress;
@ -27,7 +26,6 @@ import java.util.List;
/**
* Resolves a possibility unresolved {@link SocketAddress}.
*/
@UnstableApi
public interface AddressResolver<T extends SocketAddress> extends Closeable {
/**

View File

@ -20,7 +20,6 @@ import static java.util.Objects.requireNonNull;
import io.netty.util.concurrent.EventExecutor;
import io.netty.util.concurrent.FutureListener;
import io.netty.util.internal.UnstableApi;
import io.netty.util.internal.logging.InternalLogger;
import io.netty.util.internal.logging.InternalLoggerFactory;
@ -33,7 +32,6 @@ import java.util.concurrent.ConcurrentMap;
/**
* Creates and manages {@link NameResolver}s so that each {@link EventExecutor} has its own resolver instance.
*/
@UnstableApi
public abstract class AddressResolverGroup<T extends SocketAddress> implements Closeable {
private static final InternalLogger logger = InternalLoggerFactory.getInstance(AddressResolverGroup.class);

View File

@ -19,7 +19,6 @@ import io.netty.util.concurrent.EventExecutor;
import io.netty.util.concurrent.Future;
import io.netty.util.concurrent.FutureListener;
import io.netty.util.concurrent.Promise;
import io.netty.util.internal.UnstableApi;
import java.util.Arrays;
import java.util.List;
@ -31,7 +30,6 @@ import static java.util.Objects.requireNonNull;
*
* In case of a failure, only the last one will be reported.
*/
@UnstableApi
public final class CompositeNameResolver<T> extends SimpleNameResolver<T> {
private final NameResolver<T>[] resolvers;

View File

@ -17,14 +17,12 @@
package io.netty.resolver;
import io.netty.util.concurrent.EventExecutor;
import io.netty.util.internal.UnstableApi;
import java.net.InetSocketAddress;
/**
* A {@link AddressResolverGroup} of {@link DefaultNameResolver}s.
*/
@UnstableApi
public final class DefaultAddressResolverGroup extends AddressResolverGroup<InetSocketAddress> {
public static final DefaultAddressResolverGroup INSTANCE = new DefaultAddressResolverGroup();

View File

@ -17,7 +17,6 @@ package io.netty.resolver;
import io.netty.util.CharsetUtil;
import io.netty.util.internal.PlatformDependent;
import io.netty.util.internal.UnstableApi;
import java.net.Inet4Address;
import java.net.Inet6Address;
@ -29,7 +28,6 @@ import java.util.Map;
/**
* Default {@link HostsFileEntriesResolver} that resolves hosts file entries only once.
*/
@UnstableApi
public final class DefaultHostsFileEntriesResolver implements HostsFileEntriesResolver {
private final Map<String, Inet4Address> inet4Entries;

View File

@ -19,7 +19,6 @@ package io.netty.resolver;
import io.netty.util.internal.SocketUtils;
import io.netty.util.concurrent.EventExecutor;
import io.netty.util.concurrent.Promise;
import io.netty.util.internal.UnstableApi;
import java.net.InetAddress;
import java.net.UnknownHostException;
@ -30,7 +29,6 @@ import java.util.List;
* A {@link InetNameResolver} that resolves using JDK's built-in domain name lookup mechanism.
* Note that this resolver performs a blocking name lookup from the caller thread.
*/
@UnstableApi
public class DefaultNameResolver extends InetNameResolver {
public DefaultNameResolver(EventExecutor executor) {

View File

@ -15,8 +15,6 @@
*/
package io.netty.resolver;
import io.netty.util.internal.UnstableApi;
import java.net.Inet4Address;
import java.net.Inet6Address;
import java.util.Collections;
@ -26,7 +24,6 @@ import java.util.Map;
/**
* A container of hosts file entries
*/
@UnstableApi
public final class HostsFileEntries {
/**

View File

@ -15,14 +15,11 @@
*/
package io.netty.resolver;
import io.netty.util.internal.UnstableApi;
import java.net.InetAddress;
/**
* Resolves a hostname against the hosts file entries.
*/
@UnstableApi
public interface HostsFileEntriesResolver {
/**

View File

@ -17,7 +17,6 @@ package io.netty.resolver;
import io.netty.util.NetUtil;
import io.netty.util.internal.PlatformDependent;
import io.netty.util.internal.UnstableApi;
import io.netty.util.internal.logging.InternalLogger;
import io.netty.util.internal.logging.InternalLoggerFactory;
@ -43,7 +42,6 @@ import static java.util.Objects.requireNonNull;
/**
* A parser for hosts files.
*/
@UnstableApi
public final class HostsFileParser {
private static final String WINDOWS_DEFAULT_SYSTEM_ROOT = "C:\\Windows";

View File

@ -17,7 +17,6 @@ package io.netty.resolver;
import io.netty.util.concurrent.EventExecutor;
import io.netty.util.concurrent.Future;
import io.netty.util.internal.UnstableApi;
import java.net.InetAddress;
import java.net.InetSocketAddress;
@ -25,7 +24,6 @@ import java.net.InetSocketAddress;
/**
* A skeletal {@link NameResolver} implementation that resolves {@link InetAddress}.
*/
@UnstableApi
public abstract class InetNameResolver extends SimpleNameResolver<InetAddress> {
private volatile AddressResolver<InetSocketAddress> addressResolver;

View File

@ -19,7 +19,6 @@ import io.netty.util.concurrent.EventExecutor;
import io.netty.util.concurrent.Future;
import io.netty.util.concurrent.FutureListener;
import io.netty.util.concurrent.Promise;
import io.netty.util.internal.UnstableApi;
import java.net.InetAddress;
import java.net.InetSocketAddress;
@ -29,7 +28,6 @@ import java.util.List;
/**
* A {@link AbstractAddressResolver} that resolves {@link InetSocketAddress}.
*/
@UnstableApi
public class InetSocketAddressResolver extends AbstractAddressResolver<InetSocketAddress> {
final NameResolver<InetAddress> nameResolver;

View File

@ -18,7 +18,6 @@ package io.netty.resolver;
import io.netty.util.concurrent.Future;
import io.netty.util.concurrent.Promise;
import io.netty.util.internal.UnstableApi;
import java.io.Closeable;
import java.util.List;
@ -26,7 +25,6 @@ import java.util.List;
/**
* Resolves an arbitrary string that represents the name of an endpoint into an address.
*/
@UnstableApi
public interface NameResolver<T> extends Closeable {
/**

View File

@ -18,7 +18,6 @@ package io.netty.resolver;
import io.netty.util.concurrent.EventExecutor;
import io.netty.util.concurrent.Promise;
import io.netty.util.internal.UnstableApi;
import java.net.SocketAddress;
import java.util.Collections;
@ -28,7 +27,6 @@ import java.util.List;
* A {@link AddressResolver} 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.
*/
@UnstableApi
public class NoopAddressResolver extends AbstractAddressResolver<SocketAddress> {
public NoopAddressResolver(EventExecutor executor) {

View File

@ -17,14 +17,12 @@
package io.netty.resolver;
import io.netty.util.concurrent.EventExecutor;
import io.netty.util.internal.UnstableApi;
import java.net.SocketAddress;
/**
* A {@link AddressResolverGroup} of {@link NoopAddressResolver}s.
*/
@UnstableApi
public final class NoopAddressResolverGroup extends AddressResolverGroup<SocketAddress> {
public static final NoopAddressResolverGroup INSTANCE = new NoopAddressResolverGroup();

View File

@ -15,12 +15,9 @@
*/
package io.netty.resolver;
import io.netty.util.internal.UnstableApi;
/**
* Defined resolved address types.
*/
@UnstableApi
public enum ResolvedAddressTypes {
/**
* Only resolve IPv4 addresses

View File

@ -19,7 +19,6 @@ import io.netty.util.concurrent.EventExecutor;
import io.netty.util.concurrent.Future;
import io.netty.util.concurrent.FutureListener;
import io.netty.util.concurrent.Promise;
import io.netty.util.internal.UnstableApi;
import java.net.InetAddress;
import java.net.InetSocketAddress;
@ -35,7 +34,6 @@ import java.util.concurrent.ThreadLocalRandom;
* if multiple are returned by the {@link NameResolver}.
* Use {@link #asAddressResolver()} to create a {@link InetSocketAddress} resolver
*/
@UnstableApi
public class RoundRobinInetAddressResolver extends InetNameResolver {
private final NameResolver<InetAddress> nameResolver;

View File

@ -21,14 +21,12 @@ import static java.util.Objects.requireNonNull;
import io.netty.util.concurrent.EventExecutor;
import io.netty.util.concurrent.Future;
import io.netty.util.concurrent.Promise;
import io.netty.util.internal.UnstableApi;
import java.util.List;
/**
* A skeletal {@link NameResolver} implementation.
*/
@UnstableApi
public abstract class SimpleNameResolver<T> implements NameResolver<T> {
private final EventExecutor executor;

View File

@ -17,7 +17,4 @@
/**
* Resolves an arbitrary string that represents the name of an endpoint into an address.
*/
@UnstableApi
package io.netty.resolver;
import io.netty.util.internal.UnstableApi;