Modifier and Type | Method and Description |
---|---|
NettyServerBuilder |
NettyServerBuilder.bossEventLoopGroup(EventLoopGroup group)
Provides the boss EventGroupLoop to the server.
|
protected NettyServerBuilder |
NettyServerProvider.builderForPort(int port) |
NettyServerBuilder |
NettyServerBuilder.channelType(Class<? extends ServerChannel> channelType)
Specify the channel type to use, by default we use
NioServerSocketChannel . |
NettyServerBuilder |
NettyServerBuilder.flowControlWindow(int flowControlWindow)
Sets the HTTP/2 flow control window.
|
static NettyServerBuilder |
NettyServerBuilder.forAddress(SocketAddress address)
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.
|
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)
Sets the maximum size of header list allowed to be received on the server.
|
NettyServerBuilder |
NettyServerBuilder.maxMessageSize(int maxMessageSize)
Sets the maximum message size allowed to be received on the server.
|
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(ProtocolNegotiator protocolNegotiator)
Sets the
ProtocolNegotiator to be used. |
NettyServerBuilder |
NettyServerBuilder.sslContext(SslContext sslContext)
Sets the TLS context to use for encryption.
|
NettyServerBuilder |
NettyServerBuilder.useTransportSecurity(File certChain,
File privateKey) |
NettyServerBuilder |
NettyServerBuilder.workerEventLoopGroup(EventLoopGroup group)
Provides the worker EventGroupLoop to the server.
|