diff options
author | Kun Zhang <zhangkun83@users.noreply.github.com> | 2018-10-19 15:33:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-19 15:33:03 -0700 |
commit | a61ac5ac6e42c2974eef399d4e10674108489295 (patch) | |
tree | 5780559ecef8a1559478859b483f499b59ce5e04 /core | |
parent | bee73968c063b87007527e2f22f3489e9bb747ca (diff) | |
download | grpc-grpc-java-a61ac5ac6e42c2974eef399d4e10674108489295.tar.gz |
core: annotate Attributes key annotations as experimental API. (#4974) (#4977)
Also annotate NameResolver.Listener as experimental because
annotations of an outer class don't show in the javadoc page of its
inner classes.
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/io/grpc/EquivalentAddressGroup.java | 1 | ||||
-rw-r--r-- | core/src/main/java/io/grpc/Grpc.java | 1 | ||||
-rw-r--r-- | core/src/main/java/io/grpc/NameResolver.java | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/core/src/main/java/io/grpc/EquivalentAddressGroup.java b/core/src/main/java/io/grpc/EquivalentAddressGroup.java index 916e4a00a..eabd2eafb 100644 --- a/core/src/main/java/io/grpc/EquivalentAddressGroup.java +++ b/core/src/main/java/io/grpc/EquivalentAddressGroup.java @@ -136,6 +136,7 @@ public final class EquivalentAddressGroup { * Annotation for {@link EquivalentAddressGroup}'s attributes. It follows the annotation semantics * defined by {@link Attributes}. */ + @ExperimentalApi("https://github.com/grpc/grpc-java/issues/4972") @Retention(RetentionPolicy.SOURCE) @Documented public @interface Attr {} diff --git a/core/src/main/java/io/grpc/Grpc.java b/core/src/main/java/io/grpc/Grpc.java index 89424c4ba..53ff28be3 100644 --- a/core/src/main/java/io/grpc/Grpc.java +++ b/core/src/main/java/io/grpc/Grpc.java @@ -58,6 +58,7 @@ public final class Grpc { * Annotation for transport attributes. It follows the annotation semantics defined * by {@link Attributes}. */ + @ExperimentalApi("https://github.com/grpc/grpc-java/issues/4972") @Retention(RetentionPolicy.SOURCE) @Documented public @interface TransportAttr {} diff --git a/core/src/main/java/io/grpc/NameResolver.java b/core/src/main/java/io/grpc/NameResolver.java index 03767ca10..845dcb02f 100644 --- a/core/src/main/java/io/grpc/NameResolver.java +++ b/core/src/main/java/io/grpc/NameResolver.java @@ -129,6 +129,7 @@ public abstract class NameResolver { * * @since 1.0.0 */ + @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1770") @ThreadSafe public interface Listener { /** @@ -157,6 +158,7 @@ public abstract class NameResolver { * Annotation for name resolution result attributes. It follows the annotation semantics defined * by {@link Attributes}. */ + @ExperimentalApi("https://github.com/grpc/grpc-java/issues/4972") @Retention(RetentionPolicy.SOURCE) @Documented public @interface ResolutionResultAttr {} |