Uses of Class
io.grpc.netty.NettyChannelBuilder
Packages that use NettyChannelBuilder
Package
Description
The main transport implementation based on Netty,
for both the client and the server.
-
Uses of NettyChannelBuilder in io.grpc.netty
Methods in io.grpc.netty that return NettyChannelBuilderModifier and TypeMethodDescriptionNettyChannelProvider.builderForAddress
(String name, int port) UdsNettyChannelProvider.builderForAddress
(String name, int port) NettyChannelProvider.builderForTarget
(String target) UdsNettyChannelProvider.builderForTarget
(String target) NettyChannelBuilder.channelFactory
(io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory) Specifies theChannelFactory
to createChannel
instances.NettyChannelBuilder.channelFactory
(io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory, Class<? extends SocketAddress> transportSocketType) Similar tochannelFactory(ChannelFactory)
above but allows the caller to specify the socket-type associated with the channelFactory.NettyChannelBuilder.channelType
(Class<? extends io.netty.channel.Channel> channelType) Specifies the channel type to use, by default we useEpollSocketChannel
if available, otherwise usingNioSocketChannel
.NettyChannelBuilder.channelType
(Class<? extends io.netty.channel.Channel> channelType, Class<? extends SocketAddress> transportSocketType) Similar tochannelType(Class)
above but allows the caller to specify the socket-type associated with the channelType.NettyChannelBuilder.eventLoopGroup
(io.netty.channel.EventLoopGroup eventLoopGroup) Provides an EventGroupLoop to be used by the netty transport.NettyChannelBuilder.flowControlWindow
(int flowControlWindow) Sets the flow control window in bytes.static NettyChannelBuilder
NettyChannelBuilder.forAddress
(String host, int port) Creates a new builder with the given host and port.static NettyChannelBuilder
NettyChannelBuilder.forAddress
(String host, int port, ChannelCredentials creds) Creates a new builder with the given host and port.static NettyChannelBuilder
NettyChannelBuilder.forAddress
(SocketAddress serverAddress) Creates a new builder with the given server address.static NettyChannelBuilder
NettyChannelBuilder.forAddress
(SocketAddress serverAddress, ChannelCredentials creds) Creates a new builder with the given server address.static NettyChannelBuilder
Creates a new builder with the given target string that will be resolved byNameResolver
.static NettyChannelBuilder
NettyChannelBuilder.forTarget
(String target, ChannelCredentials creds) Creates a new builder with the given target string that will be resolved byNameResolver
.NettyChannelBuilder.initialFlowControlWindow
(int initialFlowControlWindow) Sets the initial flow control window in bytes.NettyChannelBuilder.keepAliveTime
(long keepAliveTime, TimeUnit timeUnit) Sets the time without read activity before sending a keepalive ping.NettyChannelBuilder.keepAliveTimeout
(long keepAliveTimeout, TimeUnit timeUnit) Sets the time waiting for read activity after sending a keepalive ping.NettyChannelBuilder.keepAliveWithoutCalls
(boolean enable) Sets whether keepalive will be performed when there are no outstanding RPC on a connection.NettyChannelBuilder.localSocketPicker
(NettyChannelBuilder.LocalSocketPicker localSocketPicker) If non-null
, attempts to create connections bound to a local port.NettyChannelBuilder.maxHeaderListSize
(int maxHeaderListSize) Deprecated.NettyChannelBuilder.maxInboundMessageSize
(int max) Sets the maximum message size allowed for a single gRPC frame.NettyChannelBuilder.maxInboundMetadataSize
(int bytes) Sets the maximum size of metadata allowed to be received.NettyChannelBuilder.maxInboundMetadataSize
(int soft, int max) Sets the size of metadata that clients are advised to not exceed.NettyChannelBuilder.negotiationType
(NegotiationType type) Sets the negotiation type for the HTTP/2 connection.NettyChannelBuilder.sslContext
(io.netty.handler.ssl.SslContext sslContext) SSL/TLS context to use instead of the system default.NettyChannelBuilder.usePlaintext()
Equivalent to usingnegotiationType(NegotiationType)
withPLAINTEXT
.NettyChannelBuilder.useTransportSecurity()
Equivalent to usingnegotiationType(NegotiationType)
withTLS
.NettyChannelBuilder.withOption
(io.netty.channel.ChannelOption<T> option, T value) Specifies a channel option.Methods in io.grpc.netty with parameters of type NettyChannelBuilderModifier and TypeMethodDescriptionstatic ClientTransportFactory
InternalNettyChannelBuilder.buildTransportFactory
(NettyChannelBuilder builder) static void
InternalNettyChannelBuilder.disableCheckAuthority
(NettyChannelBuilder builder) static void
InternalNettyChannelBuilder.enableCheckAuthority
(NettyChannelBuilder builder) static void
InternalNettyChannelBuilder.setProtocolNegotiatorFactory
(NettyChannelBuilder builder, InternalNettyChannelBuilder.ProtocolNegotiatorFactory protocolNegotiator) Sets theInternalNettyChannelBuilder.ProtocolNegotiatorFactory
to be used.static void
InternalNettyChannelBuilder.setProtocolNegotiatorFactory
(NettyChannelBuilder builder, InternalProtocolNegotiator.ClientFactory protocolNegotiator) Sets theInternalNettyChannelBuilder.ProtocolNegotiatorFactory
to be used.static void
InternalNettyChannelBuilder.setStatsEnabled
(NettyChannelBuilder builder, boolean value) static void
InternalNettyChannelBuilder.setStatsRecordFinishedRpcs
(NettyChannelBuilder builder, boolean value) static void
InternalNettyChannelBuilder.setStatsRecordRealTimeMetrics
(NettyChannelBuilder builder, boolean value) static void
InternalNettyChannelBuilder.setStatsRecordRetryMetrics
(NettyChannelBuilder builder, boolean value) static void
InternalNettyChannelBuilder.setStatsRecordStartedRpcs
(NettyChannelBuilder builder, boolean value) static void
InternalNettyChannelBuilder.setTracingEnabled
(NettyChannelBuilder builder, boolean value) static void
InternalNettyChannelBuilder.setTransportTracerFactory
(NettyChannelBuilder builder, TransportTracer.Factory factory) static void
InternalNettyChannelBuilder.useNioTransport
(NettyChannelBuilder builder) SetsChannel
andEventLoopGroup
to Nio.
maxInboundMetadataSize(int)
instead