Package | Description |
---|---|
io.grpc.netty |
The main transport implementation based on Netty,
for both the client and the server.
|
Modifier and Type | Method and Description |
---|---|
NettyServerBuilder |
NettyServerBuilder.addListenAddress(SocketAddress listenAddress)
Adds an additional address for this server to listen on.
|
NettyServerBuilder |
NettyServerBuilder.bossEventLoopGroup(io.netty.channel.EventLoopGroup group)
Provides the boss EventGroupLoop to the server.
|
protected NettyServerBuilder |
NettyServerProvider.builderForPort(int port) |
NettyServerBuilder |
NettyServerBuilder.channelFactory(io.netty.channel.ChannelFactory<? extends io.netty.channel.ServerChannel> channelFactory)
Specifies the
ChannelFactory to create ServerChannel instances. |
NettyServerBuilder |
NettyServerBuilder.channelType(Class<? extends io.netty.channel.ServerChannel> channelType)
Specifies the channel type to use, by default we use
EpollServerSocketChannel if
available, otherwise using NioServerSocketChannel . |
NettyServerBuilder |
NettyServerBuilder.flowControlWindow(int flowControlWindow)
Sets the flow control window in bytes.
|
static NettyServerBuilder |
NettyServerBuilder.forAddress(SocketAddress address)
Creates a server builder configured with the given
SocketAddress . |
static NettyServerBuilder |
NettyServerBuilder.forAddress(SocketAddress address,
ServerCredentials creds)
Creates a server builder configured with the given
SocketAddress . |
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 |
NettyServerBuilder.initialFlowControlWindow(int initialFlowControlWindow)
Sets the initial flow control window in bytes.
|
NettyServerBuilder |
NettyServerBuilder.keepAliveTime(long keepAliveTime,
TimeUnit timeUnit)
Sets a custom keepalive time, the delay time for sending next keepalive ping.
|
NettyServerBuilder |
NettyServerBuilder.keepAliveTimeout(long keepAliveTimeout,
TimeUnit timeUnit)
Sets a custom keepalive timeout, the timeout for keepalive ping requests.
|
NettyServerBuilder |
NettyServerBuilder.maxConcurrentCallsPerConnection(int maxCalls)
The maximum number of concurrent calls permitted for each incoming connection.
|
NettyServerBuilder |
NettyServerBuilder.maxConnectionAge(long maxConnectionAge,
TimeUnit timeUnit)
Sets a custom max connection age, connection lasting longer than which will be gracefully
terminated.
|
NettyServerBuilder |
NettyServerBuilder.maxConnectionAgeGrace(long maxConnectionAgeGrace,
TimeUnit timeUnit)
Sets a custom grace time for the graceful connection termination.
|
NettyServerBuilder |
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 |
NettyServerBuilder.maxHeaderListSize(int maxHeaderListSize)
Deprecated.
Use
maxInboundMetadataSize(int) instead |
NettyServerBuilder |
NettyServerBuilder.maxInboundMessageSize(int bytes) |
NettyServerBuilder |
NettyServerBuilder.maxInboundMetadataSize(int bytes)
Sets the maximum size of metadata allowed to be received.
|
NettyServerBuilder |
NettyServerBuilder.maxMessageSize(int maxMessageSize)
Deprecated.
Call
maxInboundMessageSize(int) instead. This method will be removed in a
future release. |
NettyServerBuilder |
NettyServerBuilder.permitKeepAliveTime(long keepAliveTime,
TimeUnit timeUnit)
Specify the most aggressive keep-alive time clients are permitted to configure.
|
NettyServerBuilder |
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.
|
NettyServerBuilder |
NettyServerBuilder.protocolNegotiator(io.grpc.netty.ProtocolNegotiator protocolNegotiator)
Sets the
ProtocolNegotiator to be used. |
NettyServerBuilder |
NettyServerBuilder.sslContext(io.netty.handler.ssl.SslContext sslContext)
Sets the TLS context to use for encryption.
|
NettyServerBuilder |
NettyServerBuilder.useTransportSecurity(File certChain,
File privateKey) |
NettyServerBuilder |
NettyServerBuilder.useTransportSecurity(InputStream certChain,
InputStream privateKey) |
<T> NettyServerBuilder |
NettyServerBuilder.withChildOption(io.netty.channel.ChannelOption<T> option,
T value)
Specifies a child channel option.
|
<T> NettyServerBuilder |
NettyServerBuilder.withOption(io.netty.channel.ChannelOption<T> option,
T value)
Specifies a channel option.
|
NettyServerBuilder |
NettyServerBuilder.workerEventLoopGroup(io.netty.channel.EventLoopGroup group)
Provides the worker EventGroupLoop to the server.
|