mirror of https://github.com/grpc/grpc-java.git
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:
parent
3268082f01
commit
e392af1efd
|
|
@ -32,6 +32,12 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/4159")
|
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/4159")
|
||||||
public abstract class NameResolverProvider extends NameResolver.Factory {
|
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
|
@VisibleForTesting
|
||||||
static final Iterable<Class<?>> HARDCODED_CLASSES = new HardcodedClasses();
|
static final Iterable<Class<?>> HARDCODED_CLASSES = new HardcodedClasses();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue