@@ -333,7 +333,7 @@ private static ServerBuilder<?> builderAtPort(Integer port, @Nullable Executor e
333
333
*
334
334
* <p>All calls to {@link #createGrpcServer(Executor)} will resolve to the given server
335
335
* instance. The server instance is used as-is, no other
336
- * {@linkplain Builder#apply (ConfigureServer) configuration methods} have any effect on it.
336
+ * {@linkplain Builder#withServer (ConfigureServer) configuration methods} have any effect on it.
337
337
*
338
338
* <p>A test-only method.
339
339
*/
@@ -444,7 +444,7 @@ public Builder removeService(ServerServiceDefinition service) {
444
444
445
445
/**
446
446
* Sets an additional configuration action for the gRPC {@link Server} instance,
447
- * created for this {@code GrpcContainer} to run on top of. This action is applied
447
+ * created for this {@code GrpcContainer} to run on top of. This configuration is applied
448
448
* right before the {@linkplain #start() server is started}.
449
449
*
450
450
* <p>Allows the direct access to gRPC {@link ServerBuilder}'s API.
@@ -456,7 +456,7 @@ public Builder removeService(ServerServiceDefinition service) {
456
456
*/
457
457
@ Experimental
458
458
@ CanIgnoreReturnValue
459
- public Builder apply (ConfigureServer action ) {
459
+ public Builder withServer (ConfigureServer action ) {
460
460
this .configureServer = checkNotNull (action );
461
461
return this ;
462
462
}
@@ -497,15 +497,15 @@ public GrpcContainer build() {
497
497
*
498
498
* GrpcContainer container =
499
499
* GrpcContainer.atPort(1654)
500
- * {@literal .apply ((server) -> server.maxInboundMessageSize(16_000_000)) }
500
+ * {@literal .withServer ((server) -> server.maxInboundMessageSize(16_000_000)) }
501
501
* // ...
502
502
* .build();
503
503
*
504
504
* </pre>
505
505
*
506
506
* <p>Please note this interface is a part of experimental API.
507
507
*
508
- * @see Builder#apply (ConfigureServer)
508
+ * @see Builder#withServer (ConfigureServer)
509
509
*/
510
510
@ Experimental
511
511
@ FunctionalInterface
0 commit comments