public static interface EnvironmentBuilder.NettyConfiguration
| Modifier and Type | Method and Description |
|---|---|
EnvironmentBuilder.NettyConfiguration |
bootstrapCustomizer(Consumer<Bootstrap> bootstrapCustomizer)
An extension point to customize Netty's
Bootstraps used to configure connections. |
EnvironmentBuilder.NettyConfiguration |
byteBufAllocator(ByteBufAllocator byteBufAllocator)
Netty's
ByteBuf allocator. |
EnvironmentBuilder.NettyConfiguration |
channelCustomizer(Consumer<Channel> channelCustomizer)
An extension point to customize Netty's
Channels used for
connections. |
EnvironmentBuilder |
environmentBuilder()
Go back to the environment builder
|
EnvironmentBuilder.NettyConfiguration |
eventLoopGroup(EventLoopGroup eventLoopGroup)
The
EventLoopGroup instance to use. |
EnvironmentBuilder.NettyConfiguration eventLoopGroup(EventLoopGroup eventLoopGroup)
EventLoopGroup instance to use.
The environment uses its own instance by default. It is the developer's responsibility to
close the EventLoopGroup they provide.
eventLoopGroup - EnvironmentBuilder.NettyConfiguration byteBufAllocator(ByteBufAllocator byteBufAllocator)
ByteBuf allocator.byteBufAllocator - EnvironmentBuilder.NettyConfiguration channelCustomizer(Consumer<Channel> channelCustomizer)
Channels used for
connections.channelCustomizer - EnvironmentBuilder.NettyConfiguration bootstrapCustomizer(Consumer<Bootstrap> bootstrapCustomizer)
Bootstraps used to configure connections.bootstrapCustomizer - EnvironmentBuilder environmentBuilder()
Copyright © 2024 Broadcom Inc. and/or its subsidiaries. All rights reserved.