|
32 | 32 | import javax.annotation.Nullable; |
33 | 33 | import javax.annotation.concurrent.Immutable; |
34 | 34 | import javax.annotation.concurrent.NotThreadSafe; |
35 | | -import javax.annotation.concurrent.ThreadSafe; |
36 | 35 |
|
37 | 36 | /** |
38 | 37 | * A pluggable component that receives resolved addresses from {@link NameResolver} and provides the |
@@ -447,10 +446,12 @@ public void requestConnection() {} |
447 | 446 | /** |
448 | 447 | * The main balancing logic. It <strong>must be thread-safe</strong>. Typically it should only |
449 | 448 | * synchronize on its own state, and avoid synchronizing with the LoadBalancer's state. |
| 449 | + * |
| 450 | + * <p>This is thread-safe and should be considered |
| 451 | + * for the errorprone ThreadSafe annotation in the future. |
450 | 452 | * |
451 | 453 | * @since 1.2.0 |
452 | 454 | */ |
453 | | - @ThreadSafe |
454 | 455 | @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1771") |
455 | 456 | public abstract static class SubchannelPicker { |
456 | 457 | /** |
@@ -1030,9 +1031,11 @@ public String toString() { |
1030 | 1031 | /** |
1031 | 1032 | * Provides essentials for LoadBalancer implementations. |
1032 | 1033 | * |
| 1034 | + * <p>This is thread-safe and should be considered |
| 1035 | + * for the errorprone ThreadSafe annotation in the future. |
| 1036 | + * |
1033 | 1037 | * @since 1.2.0 |
1034 | 1038 | */ |
1035 | | - @ThreadSafe |
1036 | 1039 | @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1771") |
1037 | 1040 | public abstract static class Helper { |
1038 | 1041 | /** |
@@ -1551,9 +1554,11 @@ public interface SubchannelStateListener { |
1551 | 1554 | /** |
1552 | 1555 | * Factory to create {@link LoadBalancer} instance. |
1553 | 1556 | * |
| 1557 | + * <p>This is thread-safe and should be considered |
| 1558 | + * for the errorprone ThreadSafe annotation in the future. |
| 1559 | + * |
1554 | 1560 | * @since 1.2.0 |
1555 | 1561 | */ |
1556 | | - @ThreadSafe |
1557 | 1562 | @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1771") |
1558 | 1563 | public abstract static class Factory { |
1559 | 1564 | /** |
|
0 commit comments