|
22 | 22 | import com.google.common.base.MoreObjects; |
23 | 23 | import com.google.common.base.Objects; |
24 | 24 | import com.google.common.base.Preconditions; |
| 25 | +import com.google.errorprone.annotations.ThreadSafe; |
25 | 26 | import java.util.ArrayList; |
26 | 27 | import java.util.Arrays; |
27 | 28 | import java.util.Collections; |
|
32 | 33 | import javax.annotation.Nullable; |
33 | 34 | import javax.annotation.concurrent.Immutable; |
34 | 35 | import javax.annotation.concurrent.NotThreadSafe; |
35 | | -import javax.annotation.concurrent.ThreadSafe; |
36 | 36 |
|
37 | 37 | /** |
38 | 38 | * A pluggable component that receives resolved addresses from {@link NameResolver} and provides the |
|
64 | 64 | * allows implementations to schedule tasks to be run in the same Synchronization Context, with or |
65 | 65 | * without a delay, thus those tasks don't need to worry about synchronizing with the balancer |
66 | 66 | * methods. |
67 | | - * |
| 67 | + * |
68 | 68 | * <p>However, the actual running thread may be the network thread, thus the following rules must be |
69 | 69 | * followed to prevent blocking or even dead-locking in a network: |
70 | 70 | * |
@@ -417,7 +417,7 @@ public void handleSubchannelState( |
417 | 417 | * |
418 | 418 | * <p>This method should always return a constant value. It's not specified when this will be |
419 | 419 | * called. |
420 | | - * |
| 420 | + * |
421 | 421 | * <p>Note that this method is only called when implementing {@code handleResolvedAddresses()} |
422 | 422 | * instead of {@code acceptResolvedAddresses()}. |
423 | 423 | * |
@@ -640,7 +640,7 @@ private PickResult( |
640 | 640 | * stream is created at all in some cases. |
641 | 641 | * @since 1.3.0 |
642 | 642 | */ |
643 | | - // TODO(shivaspeaks): Need to deprecate old APIs and create new ones, |
| 643 | + // TODO(shivaspeaks): Need to deprecate old APIs and create new ones, |
644 | 644 | // per https://github.com/grpc/grpc-java/issues/12662. |
645 | 645 | public static PickResult withSubchannel( |
646 | 646 | Subchannel subchannel, @Nullable ClientStreamTracer.Factory streamTracerFactory) { |
@@ -1332,7 +1332,7 @@ public MetricRecorder getMetricRecorder() { |
1332 | 1332 | } |
1333 | 1333 |
|
1334 | 1334 | /** |
1335 | | - * A logical connection to a server, or a group of equivalent servers represented by an {@link |
| 1335 | + * A logical connection to a server, or a group of equivalent servers represented by an {@link |
1336 | 1336 | * EquivalentAddressGroup}. |
1337 | 1337 | * |
1338 | 1338 | * <p>It maintains at most one physical connection (aka transport) for sending new RPCs, while |
|
0 commit comments