File tree Expand file tree Collapse file tree
api/src/main/java/io/grpc Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949 * @since 1.83.0
5050 */
5151@ ExperimentalApi ("https://github.com/grpc/grpc-java/issues/12574" )
52+ @ FunctionalInterface
5253public interface ChannelConfigurator {
5354
5455 /**
@@ -57,6 +58,13 @@ public interface ChannelConfigurator {
5758 * <p>This method is invoked synchronously during the creation of the child channel,
5859 * before {@link ManagedChannelBuilder#build()} is called.
5960 *
61+ * <p><strong>Note:</strong> Implementations must only apply configurations to the
62+ * provided builder and must NOT call {@code builder.build()} themselves.
63+ *
64+ * <p><strong>Note:</strong> The provided {@code builder} is generic ({@code ?}). Implementations
65+ * should use universal configuration methods (like {@code intercept()}, {@code userAgent()}) on the builder
66+ * rather than casting it to specific implementation types.
67+ *
6068 * @param builder the mutable channel builder for the new child channel
6169 */
6270 void configureChannelBuilder (ManagedChannelBuilder <?> builder );
You can’t perform that action at this time.
0 commit comments