@@ -323,7 +323,7 @@ public static final class Args {
323323 @ Nullable private final MetricRecorder metricRecorder ;
324324 @ Nullable private final NameResolverRegistry nameResolverRegistry ;
325325 @ Nullable private final IdentityHashMap <Key <?>, Object > customArgs ;
326- @ Nullable private final ManagedChannel parentChannel ;
326+ @ Nullable private final ChildChannelConfigurer childChannelConfigurer ;
327327
328328 private Args (Builder builder ) {
329329 this .defaultPort = checkNotNull (builder .defaultPort , "defaultPort not set" );
@@ -338,7 +338,7 @@ private Args(Builder builder) {
338338 this .metricRecorder = builder .metricRecorder ;
339339 this .nameResolverRegistry = builder .nameResolverRegistry ;
340340 this .customArgs = cloneCustomArgs (builder .customArgs );
341- this .parentChannel = builder .parentChannel ;
341+ this .childChannelConfigurer = builder .childChannelConfigurer ;
342342 }
343343
344344 /**
@@ -438,11 +438,14 @@ public ChannelLogger getChannelLogger() {
438438 }
439439
440440 /**
441- * Returns the parent {@link ManagedChannel} served by this NameResolver.
441+ * Returns the configurer for child channels.
442+ *
443+ * @since 1.81.0
442444 */
445+ @ Nullable
443446 @ Internal
444- public ManagedChannel getParentChannel () {
445- return parentChannel ;
447+ public ChildChannelConfigurer getChildChannelConfigurer () {
448+ return childChannelConfigurer ;
446449 }
447450
448451 /**
@@ -554,7 +557,7 @@ public static final class Builder {
554557 private MetricRecorder metricRecorder ;
555558 private NameResolverRegistry nameResolverRegistry ;
556559 private IdentityHashMap <Key <?>, Object > customArgs ;
557- private ManagedChannel parentChannel ;
560+ private ChildChannelConfigurer childChannelConfigurer ;
558561
559562 Builder () {
560563 }
@@ -671,12 +674,12 @@ public Builder setNameResolverRegistry(NameResolverRegistry registry) {
671674 }
672675
673676 /**
674- * See {@link Args#parentChannel }. This is an optional field.
677+ * See {@link Args#getChildChannelConfigurer() }. This is an optional field.
675678 *
676- * @since 1.79 .0
679+ * @since 1.81 .0
677680 */
678- public Builder setParentChannel ( ManagedChannel parentChannel ) {
679- this .parentChannel = parentChannel ;
681+ public Builder setChildChannelConfigurer ( ChildChannelConfigurer childChannelConfigurer ) {
682+ this .childChannelConfigurer = childChannelConfigurer ;
680683 return this ;
681684 }
682685
0 commit comments