Package com.rabbitmq.stream
Interface EnvironmentBuilder.NettyConfiguration
-
- Enclosing interface:
- EnvironmentBuilder
public static interface EnvironmentBuilder.NettyConfigurationHelper to configure Netty
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EnvironmentBuilder.NettyConfigurationbootstrapCustomizer(Consumer<Bootstrap> bootstrapCustomizer)An extension point to customize Netty'sBootstraps used to configure connections.EnvironmentBuilder.NettyConfigurationbyteBufAllocator(ByteBufAllocator byteBufAllocator)Netty'sByteBufallocator.EnvironmentBuilder.NettyConfigurationchannelCustomizer(Consumer<Channel> channelCustomizer)An extension point to customize Netty'sChannels used for connections.EnvironmentBuilderenvironmentBuilder()Go back to the environment builderEnvironmentBuilder.NettyConfigurationeventLoopGroup(EventLoopGroup eventLoopGroup)TheEventLoopGroupinstance to use.
-
-
-
Method Detail
-
eventLoopGroup
EnvironmentBuilder.NettyConfiguration eventLoopGroup(EventLoopGroup eventLoopGroup)
TheEventLoopGroupinstance to use.The environment uses its own instance by default. It is the developer's responsibility to close the
EventLoopGroupthey provide.- Parameters:
eventLoopGroup-- Returns:
- the Netty configuration helper
-
byteBufAllocator
EnvironmentBuilder.NettyConfiguration byteBufAllocator(ByteBufAllocator byteBufAllocator)
Netty'sByteBufallocator.- Parameters:
byteBufAllocator-- Returns:
- the Netty configuration helper
-
channelCustomizer
EnvironmentBuilder.NettyConfiguration channelCustomizer(Consumer<Channel> channelCustomizer)
An extension point to customize Netty'sChannels used for connections.- Parameters:
channelCustomizer-- Returns:
- the Netty configuration helper
-
bootstrapCustomizer
EnvironmentBuilder.NettyConfiguration bootstrapCustomizer(Consumer<Bootstrap> bootstrapCustomizer)
An extension point to customize Netty'sBootstraps used to configure connections.- Parameters:
bootstrapCustomizer-- Returns:
- the Netty configuration helper
-
environmentBuilder
EnvironmentBuilder environmentBuilder()
Go back to the environment builder- Returns:
- the environment builder
-
-