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
Subclasses with type arguments of type NettyChannelBuilder in io.grpc.nettyModifier and TypeClassDescriptionfinal classA builder to help simplify construction of channels using the Netty transport.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 theChannelFactoryto createChannelinstances.NettyChannelBuilder.channelFactory(io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory, Class<? extends SocketAddress> transportSocketType) Similar toNettyChannelBuilder.channelFactory(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 useEpollSocketChannelif available, otherwise usingNioSocketChannel.NettyChannelBuilder.channelType(Class<? extends io.netty.channel.Channel> channelType, Class<? extends SocketAddress> transportSocketType) Similar toNettyChannelBuilder.channelType(Class)above but allows the caller to specify the socket-type associated with the channelType.(package private) NettyChannelBuilderNettyChannelBuilder.disableCheckAuthority()(package private) NettyChannelBuilderNettyChannelBuilder.enableCheckAuthority()NettyChannelBuilder.eventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup) Provides an EventGroupLoop to be used by the netty transport.(package private) NettyChannelBuilderNettyChannelBuilder.eventLoopGroupPool(ObjectPool<? extends io.netty.channel.EventLoopGroup> eventLoopGroupPool) NettyChannelBuilder.flowControlWindow(int flowControlWindow) Sets the flow control window in bytes.static NettyChannelBuilderNettyChannelBuilder.forAddress(String host, int port) Creates a new builder with the given host and port.static NettyChannelBuilderNettyChannelBuilder.forAddress(String host, int port, ChannelCredentials creds) Creates a new builder with the given host and port.static NettyChannelBuilderNettyChannelBuilder.forAddress(SocketAddress serverAddress) Creates a new builder with the given server address.static NettyChannelBuilderNettyChannelBuilder.forAddress(SocketAddress serverAddress, ChannelCredentials creds) Creates a new builder with the given server address.static NettyChannelBuilderCreates a new builder with the given target string that will be resolved byNameResolver.static NettyChannelBuilderNettyChannelBuilder.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.negotiationType(NegotiationType type) Sets the negotiation type for the HTTP/2 connection.(package private) NettyChannelBuilderNettyChannelBuilder.setTransportTracerFactory(TransportTracer.Factory transportTracerFactory) NettyChannelBuilder.sslContext(io.netty.handler.ssl.SslContext sslContext) SSL/TLS context to use instead of the system default.NettyChannelBuilder.usePlaintext()Equivalent to usingNettyChannelBuilder.negotiationType(NegotiationType)withPLAINTEXT.NettyChannelBuilder.useTransportSecurity()Equivalent to usingNettyChannelBuilder.negotiationType(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 ClientTransportFactoryInternalNettyChannelBuilder.buildTransportFactory(NettyChannelBuilder builder) static voidInternalNettyChannelBuilder.disableCheckAuthority(NettyChannelBuilder builder) static voidInternalNettyChannelBuilder.enableCheckAuthority(NettyChannelBuilder builder) static voidInternalNettyChannelBuilder.setProtocolNegotiatorFactory(NettyChannelBuilder builder, InternalNettyChannelBuilder.ProtocolNegotiatorFactory protocolNegotiator) Sets theInternalNettyChannelBuilder.ProtocolNegotiatorFactoryto be used.static voidInternalNettyChannelBuilder.setProtocolNegotiatorFactory(NettyChannelBuilder builder, InternalProtocolNegotiator.ClientFactory protocolNegotiator) Sets theInternalNettyChannelBuilder.ProtocolNegotiatorFactoryto be used.static voidInternalNettyChannelBuilder.setStatsEnabled(NettyChannelBuilder builder, boolean value) static voidInternalNettyChannelBuilder.setStatsRecordFinishedRpcs(NettyChannelBuilder builder, boolean value) static voidInternalNettyChannelBuilder.setStatsRecordRealTimeMetrics(NettyChannelBuilder builder, boolean value) static voidInternalNettyChannelBuilder.setStatsRecordRetryMetrics(NettyChannelBuilder builder, boolean value) static voidInternalNettyChannelBuilder.setStatsRecordStartedRpcs(NettyChannelBuilder builder, boolean value) static voidInternalNettyChannelBuilder.setTracingEnabled(NettyChannelBuilder builder, boolean value) static voidInternalNettyChannelBuilder.setTransportTracerFactory(NettyChannelBuilder builder, TransportTracer.Factory factory) static voidInternalNettyChannelBuilder.useNioTransport(NettyChannelBuilder builder) SetsChannelandEventLoopGroupto Nio.
NettyChannelBuilder.maxInboundMetadataSize(int)instead