ConfigureServer

public interface ConfigureServer implements Function<T, R>

Allows to configure the gRPC's 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.

See also

Functions

Link copied to clipboard
Returns an instance which does nothing and returns the same ServerBuilder.

Inherited functions

Link copied to clipboard
public Function<T, V> andThen<V>(Function<? extends Object, ? extends V> after)
Link copied to clipboard
public abstract R apply(T p)
Link copied to clipboard
public Function<V, R> compose<V>(Function<? extends Object, ? extends T> before)
Link copied to clipboard
public static Function<T, T> identity<T>()