File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/spi/v1 Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2424import com .google .api .gax .grpc .InstantiatingExecutorProvider ;
2525import com .google .auth .oauth2 .GoogleCredentials ;
2626import com .google .common .annotations .VisibleForTesting ;
27- import com .google .common .base .Optional ;
2827import com .google .common .base .Preconditions ;
2928import com .google .common .collect .ImmutableList ;
3029import com .google .common .util .concurrent .FutureCallback ;
@@ -586,9 +585,12 @@ private Builder(TopicName topic) {
586585 }
587586
588587 /**
589- * ChannelProvider to use to create Channels.
588+ * {@code ChannelProvider} to use to create Channels, which must point at Cloud Pub/Sub
589+ * endpoint.
590590 *
591- * <p>Must point at Cloud Pub/Sub endpoint.
591+ * <p>For performance, this client benefits from having multiple channels open at once. Users
592+ * are encouraged to provide instances of {@code ChannelProvider} that creates new channels
593+ * instead of returning pre-initialized ones.
592594 */
593595 public Builder setChannelProvider (ChannelProvider channelProvider ) {
594596 this .channelProvider = Preconditions .checkNotNull (channelProvider );
You can’t perform that action at this time.
0 commit comments