core: Tracking NameResolverProvider being experimental

This commit is contained in:
ZHANG Dapeng 2018-03-01 14:20:49 -08:00 committed by GitHub
parent 3334a8a554
commit c07ad68cbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -30,14 +30,8 @@ import java.util.List;
* exceptions may reasonably occur for implementation-specific reasons, implementations should * exceptions may reasonably occur for implementation-specific reasons, implementations should
* generally handle the exception gracefully and return {@code false} from {@link #isAvailable()}. * generally handle the exception gracefully and return {@code false} from {@link #isAvailable()}.
*/ */
@ExperimentalApi @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();