Partially revert "core: Tracking NameResolverProvider being experimental"

This partially reverts commit c07ad68cbd.

The PARAMS_DEFAULT_PORT in NameResorverProvider is the preferred name.
The hope is still to kill NameResolver.Factory.
This commit is contained in:
Eric Anderson 2018-03-02 11:31:14 -08:00
parent 3268082f01
commit e392af1efd
1 changed files with 6 additions and 0 deletions

View File

@ -32,6 +32,12 @@ import java.util.List;
*/
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/4159")
public abstract class NameResolverProvider extends NameResolver.Factory {
/**
* The port number used in case the target or the underlying naming system doesn't provide a
* port number.
*/
public static final Attributes.Key<Integer> PARAMS_DEFAULT_PORT =
NameResolver.Factory.PARAMS_DEFAULT_PORT;
@VisibleForTesting
static final Iterable<Class<?>> HARDCODED_CLASSES = new HardcodedClasses();