Package io.quarkus.grpc.runtime.config
Interface GrpcServerConfiguration
public interface GrpcServerConfiguration
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfaceShared configuration for setting up server-side SSL.static interfaceXDS config * XDS usage -
Method Summary
Modifier and TypeMethodDescriptionbooleanalpn()Whether ALPN should be used.gRPC compression, e.g.booleanEnables the gRPC Reflection Service.The gRPC handshake timeout.host()The gRPC server host.Configure InProcess usage, if enabled.intNumber of gRPC server verticle instances.default booleanThe max inbound message size in bytes.The max inbound metadata size in bytesnetty()Configures the netty server settings.booleanDisables SSL, and uses plain text instead.intport()The gRPC Server port.ssl()The SSL/TLS config.inttestPort()The gRPC Server port used for tests.Configures the transport security.booleanDo we use separate HTTP server to serve gRPC requests.xds()Configure XDS usage, if enabled.
-
Method Details
-
useSeparateServer
@WithDefault("true") boolean useSeparateServer()Do we use separate HTTP server to serve gRPC requests. Set this to false if you want to use new Vert.x gRPC support, which uses existing Vert.x HTTP server. -
xds
Configure XDS usage, if enabled. -
inProcess
InProcess inProcess()Configure InProcess usage, if enabled. -
port
@WithDefault("9000") int port()The gRPC Server port. -
testPort
@WithDefault("9001") int testPort()The gRPC Server port used for tests. -
host
The gRPC server host. -
handshakeTimeout
The gRPC handshake timeout. -
maxInboundMessageSize
OptionalInt maxInboundMessageSize()The max inbound message size in bytes.When using a single server (using
quarkus.grpc.server.use-separate-server=false), the default value is 256KB. When using a separate server (usingquarkus.grpc.server.use-separate-server=true), the default value is 4MB. -
maxInboundMetadataSize
OptionalInt maxInboundMetadataSize()The max inbound metadata size in bytes -
ssl
The SSL/TLS config. -
plainText
@WithDefault("true") boolean plainText()Disables SSL, and uses plain text instead. If disabled, configure the ssl configuration. -
isPlainTextEnabled
default boolean isPlainTextEnabled() -
alpn
@WithDefault("true") boolean alpn()Whether ALPN should be used. -
transportSecurity
GrpcServerConfiguration.GrpcTransportSecurity transportSecurity()Configures the transport security. -
enableReflectionService
@WithDefault("false") boolean enableReflectionService()Enables the gRPC Reflection Service. By default, the reflection service is only exposed in `dev` mode. This setting allows overriding this choice and enable the reflection service every time. -
instances
@WithDefault("1") int instances()Number of gRPC server verticle instances. This is useful for scaling easily across multiple cores. The number should not exceed the amount of event loops. -
netty
Configures the netty server settings. -
compression
gRPC compression, e.g. "gzip"
-