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
Subclasses with type arguments of type NettyServerBuilder in io.grpc.nettyModifier and TypeClassDescriptionfinal classA builder to help simplify the construction of a Netty-based GRPC server.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.(package private) NettyServerBuilderNettyServerBuilder.bossEventLoopGroupPool(ObjectPool<? extends io.netty.channel.EventLoopGroup> bossEventLoopGroupPool) protected NettyServerBuilderNettyServerProvider.builderForPort(int port) NettyServerBuilder.channelFactory(io.netty.channel.ChannelFactory<? extends io.netty.channel.ServerChannel> channelFactory) Specifies theChannelFactoryto createServerChannelinstances.NettyServerBuilder.channelType(Class<? extends io.netty.channel.ServerChannel> channelType) Specifies the channel type to use, by default we useEpollServerSocketChannelif available, otherwise usingNioServerSocketChannel.NettyServerBuilder.flowControlWindow(int flowControlWindow) Sets the flow control window in bytes.static NettyServerBuilderNettyServerBuilder.forAddress(SocketAddress address) Creates a server builder configured with the givenSocketAddress.static NettyServerBuilderNettyServerBuilder.forAddress(SocketAddress address, ServerCredentials creds) Creates a server builder configured with the givenSocketAddress.static NettyServerBuilderNettyServerBuilder.forPort(int port) Creates a server builder that will bind to the given port.static NettyServerBuilderNettyServerBuilder.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.maxMessageSize(int maxMessageSize) Deprecated.CallNettyServerBuilder.maxInboundMessageSize(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 NettyServerBuilderNettyServerBuilder.protocolNegotiator(ProtocolNegotiator protocolNegotiator) Sets theProtocolNegotiatorto be used.(package private) NettyServerBuilderNettyServerBuilder.setTransportTracerFactory(TransportTracer.Factory transportTracerFactory) 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.(package private) NettyServerBuilderNettyServerBuilder.workerEventLoopGroupPool(ObjectPool<? extends io.netty.channel.EventLoopGroup> workerEventLoopGroupPool) Methods in io.grpc.netty with parameters of type NettyServerBuilderModifier and TypeMethodDescriptionstatic voidInternalNettyServerBuilder.eagAttributes(NettyServerBuilder builder, Attributes eagAttributes) Sets the EAG attributes available to protocol negotiators.static voidInternalNettyServerBuilder.setForceHeapBuffer(NettyServerBuilder builder, boolean value) static voidInternalNettyServerBuilder.setStatsEnabled(NettyServerBuilder builder, boolean value) static voidInternalNettyServerBuilder.setStatsRecordRealTimeMetrics(NettyServerBuilder builder, boolean value) static voidInternalNettyServerBuilder.setStatsRecordStartedRpcs(NettyServerBuilder builder, boolean value) static voidInternalNettyServerBuilder.setTracingEnabled(NettyServerBuilder builder, boolean value) static voidInternalNettyServerBuilder.useNioTransport(NettyServerBuilder builder) SetsChannelandEventLoopGroups to Nio.
NettyServerBuilder.maxInboundMetadataSize(int)instead