diff --git a/core/src/main/java/io/grpc/Attributes.java b/core/src/main/java/io/grpc/Attributes.java index b8821ded0e..dab06000f0 100644 --- a/core/src/main/java/io/grpc/Attributes.java +++ b/core/src/main/java/io/grpc/Attributes.java @@ -43,7 +43,7 @@ import javax.annotation.concurrent.Immutable; /** * An immutable type-safe container of attributes. */ -@ExperimentalApi +@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1764") @Immutable public final class Attributes { diff --git a/core/src/main/java/io/grpc/BindableService.java b/core/src/main/java/io/grpc/BindableService.java index 14e4543bd6..f8415f0ff4 100644 --- a/core/src/main/java/io/grpc/BindableService.java +++ b/core/src/main/java/io/grpc/BindableService.java @@ -46,7 +46,7 @@ package io.grpc; * Server server = ServerBuilder.forPort(1234).addService(new RouteGuideService()).build(); *
*/ -@ExperimentalApi +@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1701") public interface BindableService { /** * Creates {@link ServerServiceDefinition} object for current instance of service implementation. diff --git a/core/src/main/java/io/grpc/CallOptions.java b/core/src/main/java/io/grpc/CallOptions.java index f9968034f4..3f16603bcd 100644 --- a/core/src/main/java/io/grpc/CallOptions.java +++ b/core/src/main/java/io/grpc/CallOptions.java @@ -75,7 +75,7 @@ public final class CallOptions { * verification of the overridden value, such as making sure the authority matches the server's * TLS certificate. */ - @ExperimentalApi("https://github.com/grpc/grpc-java/issues/67") + @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1767") public CallOptions withAuthority(@Nullable String authority) { CallOptions newOptions = new CallOptions(this); newOptions.authority = authority; @@ -86,7 +86,7 @@ public final class CallOptions { * Sets the compression to use for the call. The compressor must be a valid name known in the * {@link CompressorRegistry}. */ - @ExperimentalApi + @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1704") public CallOptions withCompression(@Nullable String compressorName) { CallOptions newOptions = new CallOptions(this); newOptions.compressorName = compressorName; @@ -101,7 +101,7 @@ public final class CallOptions { * * @param deadline the deadline or {@code null} for unsetting the deadline. */ - @ExperimentalApi + @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1706") public CallOptions withDeadline(@Nullable Deadline deadline) { CallOptions newOptions = new CallOptions(this); newOptions.deadline = deadline; @@ -152,7 +152,7 @@ public final class CallOptions { /** * Returns the deadline or {@code null} if the deadline is not set. */ - @ExperimentalApi + @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1706") @Nullable public Deadline getDeadline() { return deadline; @@ -161,7 +161,7 @@ public final class CallOptions { /** * Returns a new {@code CallOptions} with attributes for affinity-based routing. */ - @ExperimentalApi + @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1766") public CallOptions withAffinity(Attributes affinity) { CallOptions newOptions = new CallOptions(this); newOptions.affinity = Preconditions.checkNotNull(affinity); @@ -171,16 +171,15 @@ public final class CallOptions { /** * Returns the attributes for affinity-based routing. */ - @ExperimentalApi + @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1766") public Attributes getAffinity() { return affinity; } - /** * Returns the compressor's name. */ - @ExperimentalApi + @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1704") @Nullable public String getCompressor() { return compressorName; @@ -196,7 +195,7 @@ public final class CallOptions { * TLS certificate. */ @Nullable - @ExperimentalApi("https://github.com/grpc/grpc-java/issues/67") + @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1767") public String getAuthority() { return authority; } diff --git a/core/src/main/java/io/grpc/ClientCall.java b/core/src/main/java/io/grpc/ClientCall.java index 8493460386..3b9dcd016d 100644 --- a/core/src/main/java/io/grpc/ClientCall.java +++ b/core/src/main/java/io/grpc/ClientCall.java @@ -221,7 +221,7 @@ public abstract class ClientCallThe specification doesn't say anything about ordering, or preference, so the returned codes
* can be arbitrary.
*/
- @ExperimentalApi("https://github.com/grpc/grpc-java/issues/492")
+ @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1704")
public Set Should only used by tests.
*/
- @ExperimentalApi("primarily for testing")
+ @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1767")
public abstract T overrideAuthority(String authority);
/*
@@ -142,7 +142,7 @@ public abstract class ManagedChannelBuilder If this method is not called, the builder will look up in the global resolver registry for
* a factory for the provided target.
*/
- @ExperimentalApi
+ @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1770")
public abstract T nameResolverFactory(NameResolver.Factory resolverFactory);
/**
@@ -160,7 +160,7 @@ public abstract class ManagedChannelBuilder If this method is not called, the builder will use {@link SimpleLoadBalancerFactory} for the
* channel.
*/
- @ExperimentalApi
+ @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1771")
public abstract T loadBalancerFactory(LoadBalancer.Factory loadBalancerFactory);
/**
@@ -168,7 +168,7 @@ public abstract class ManagedChannelBuilder The addresses and attributes of a target may be changed over time, thus the caller registers a
* {@link Listener} to receive continuous updates.
*/
-@ExperimentalApi
+@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1770")
@ThreadSafe
public abstract class NameResolver {
/**
diff --git a/core/src/main/java/io/grpc/NameResolverRegistry.java b/core/src/main/java/io/grpc/NameResolverRegistry.java
index c22055938f..6105443191 100644
--- a/core/src/main/java/io/grpc/NameResolverRegistry.java
+++ b/core/src/main/java/io/grpc/NameResolverRegistry.java
@@ -42,7 +42,7 @@ import javax.annotation.concurrent.ThreadSafe;
* A registry that holds various {@link NameResolver.Factory}s and dispatches target URI to the
* first one that can handle it.
*/
-@ExperimentalApi
+@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1770")
@ThreadSafe
public final class NameResolverRegistry extends NameResolver.Factory {
private static final NameResolverRegistry defaultRegistry =
diff --git a/core/src/main/java/io/grpc/PartialForwardingServerCall.java b/core/src/main/java/io/grpc/PartialForwardingServerCall.java
index 67171d2f59..8af0751ca9 100644
--- a/core/src/main/java/io/grpc/PartialForwardingServerCall.java
+++ b/core/src/main/java/io/grpc/PartialForwardingServerCall.java
@@ -67,13 +67,13 @@ abstract class PartialForwardingServerCall> {
*
* @param deadline the deadline or {@code null} for unsetting the deadline.
*/
- @ExperimentalApi
+ @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1706")
public final S withDeadline(@Nullable Deadline deadline) {
return build(channel, callOptions.withDeadline(deadline));
}
@@ -144,7 +144,7 @@ public abstract class AbstractStub> {
*
* @param compressorName the name (e.g. "gzip") of the compressor to use.
*/
- @ExperimentalApi
+ @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1704")
public final S withCompression(String compressorName) {
return build(channel, callOptions.withCompression(compressorName));
}