@Experimental
@FunctionalInterface
public static interface GrpcContainer.ConfigureServer
extends java.util.function.Function<io.grpc.ServerBuilder<?>,io.grpc.ServerBuilder<?>>
Server
instance,
on top of which this GrpcContainer
will operate.
It is expected that the obtained builder of gRPC server is used to perform
some fine-grained tuning of its features. The same instance of ServerBuilder
should be returned.
Example.
GrpcContainer container = GrpcContainer.atPort(1654) .withServer((server) -> server.maxInboundMessageSize(16_000_000)) // ... .build();
Please note this interface is a part of experimental API.
Builder#withServer(ConfigureServer)
Modifier and Type | Method and Description |
---|---|
static GrpcContainer.ConfigureServer |
doNothing()
Returns an instance which does nothing and returns the same
ServerBuilder . |
static GrpcContainer.ConfigureServer doNothing()
ServerBuilder
.