Uses of Class
io.grpc.netty.NettyServerBuilder
Packages that use NettyServerBuilder
Package
Description
The main transport implementation based on Netty,
for both the client and the server.
-
Uses of NettyServerBuilder in io.grpc.netty
Methods in io.grpc.netty that return NettyServerBuilderModifier and TypeMethodDescriptionNettyServerBuilder.addListenAddress
(SocketAddress listenAddress) Adds an additional address for this server to listen on.NettyServerBuilder.bossEventLoopGroup
(io.netty.channel.EventLoopGroup group) Provides the boss EventGroupLoop to the server.protected NettyServerBuilder
NettyServerProvider.builderForPort
(int port) NettyServerBuilder.channelFactory
(io.netty.channel.ChannelFactory<? extends io.netty.channel.ServerChannel> channelFactory) Specifies theChannelFactory
to createServerChannel
instances.NettyServerBuilder.channelType
(Class<? extends io.netty.channel.ServerChannel> channelType) Specifies the channel type to use, by default we useEpollServerSocketChannel
if available, otherwise usingNioServerSocketChannel
.NettyServerBuilder.flowControlWindow
(int flowControlWindow) Sets the flow control window in bytes.static NettyServerBuilder
NettyServerBuilder.forAddress
(SocketAddress address) Creates a server builder configured with the givenSocketAddress
.static NettyServerBuilder
NettyServerBuilder.forAddress
(SocketAddress address, ServerCredentials creds) Creates a server builder configured with the givenSocketAddress
.static NettyServerBuilder
NettyServerBuilder.forPort
(int port) Creates a server builder that will bind to the given port.static NettyServerBuilder
NettyServerBuilder.forPort
(int port, ServerCredentials creds) Creates a server builder that will bind to the given port.NettyServerBuilder.initialFlowControlWindow
(int initialFlowControlWindow) Sets the initial flow control window in bytes.NettyServerBuilder.keepAliveTime
(long keepAliveTime, TimeUnit timeUnit) Sets a custom keepalive time, the delay time for sending next keepalive ping.NettyServerBuilder.keepAliveTimeout
(long keepAliveTimeout, TimeUnit timeUnit) Sets a custom keepalive timeout, the timeout for keepalive ping requests.NettyServerBuilder.maxConcurrentCallsPerConnection
(int maxCalls) The maximum number of concurrent calls permitted for each incoming connection.NettyServerBuilder.maxConnectionAge
(long maxConnectionAge, TimeUnit timeUnit) Sets a custom max connection age, connection lasting longer than which will be gracefully terminated.NettyServerBuilder.maxConnectionAgeGrace
(long maxConnectionAgeGrace, TimeUnit timeUnit) Sets a custom grace time for the graceful connection termination.NettyServerBuilder.maxConnectionIdle
(long maxConnectionIdle, TimeUnit timeUnit) Sets a custom max connection idle time, connection being idle for longer than which will be gracefully terminated.NettyServerBuilder.maxHeaderListSize
(int maxHeaderListSize) Deprecated.NettyServerBuilder.maxInboundMessageSize
(int bytes) Sets the maximum message size allowed to be received on the server.NettyServerBuilder.maxInboundMetadataSize
(int bytes) Sets the maximum size of metadata allowed to be received.NettyServerBuilder.maxInboundMetadataSize
(int soft, int max) Sets the size of metadata that clients are advised to not exceed.NettyServerBuilder.maxMessageSize
(int maxMessageSize) Deprecated.CallmaxInboundMessageSize(int)
instead.NettyServerBuilder.maxRstFramesPerWindow
(int maxRstStream, int secondsPerWindow) Limits the rate of incoming RST_STREAM frames per connection to maxRstStream per secondsPerWindow.NettyServerBuilder.permitKeepAliveTime
(long keepAliveTime, TimeUnit timeUnit) Specify the most aggressive keep-alive time clients are permitted to configure.NettyServerBuilder.permitKeepAliveWithoutCalls
(boolean permit) Sets whether to allow clients to send keep-alive HTTP/2 PINGs even if there are no outstanding RPCs on the connection.final NettyServerBuilder
NettyServerBuilder.protocolNegotiator
(io.grpc.netty.ProtocolNegotiator protocolNegotiator) Sets theProtocolNegotiator
to be used.NettyServerBuilder.sslContext
(io.netty.handler.ssl.SslContext sslContext) Sets the TLS context to use for encryption.NettyServerBuilder.useTransportSecurity
(File certChain, File privateKey) NettyServerBuilder.useTransportSecurity
(InputStream certChain, InputStream privateKey) NettyServerBuilder.withChildOption
(io.netty.channel.ChannelOption<T> option, T value) Specifies a child channel option.NettyServerBuilder.withOption
(io.netty.channel.ChannelOption<T> option, T value) Specifies a channel option.NettyServerBuilder.workerEventLoopGroup
(io.netty.channel.EventLoopGroup group) Provides the worker EventGroupLoop to the server.Methods in io.grpc.netty with parameters of type NettyServerBuilderModifier and TypeMethodDescriptionstatic void
InternalNettyServerBuilder.eagAttributes
(NettyServerBuilder builder, Attributes eagAttributes) Sets the EAG attributes available to protocol negotiators.static void
InternalNettyServerBuilder.setForceHeapBuffer
(NettyServerBuilder builder, boolean value) static void
InternalNettyServerBuilder.setStatsEnabled
(NettyServerBuilder builder, boolean value) static void
InternalNettyServerBuilder.setStatsRecordRealTimeMetrics
(NettyServerBuilder builder, boolean value) static void
InternalNettyServerBuilder.setStatsRecordStartedRpcs
(NettyServerBuilder builder, boolean value) static void
InternalNettyServerBuilder.setTracingEnabled
(NettyServerBuilder builder, boolean value) static void
InternalNettyServerBuilder.useNioTransport
(NettyServerBuilder builder) SetsChannel
andEventLoopGroup
s to Nio.
maxInboundMetadataSize(int)
instead