Package com.rabbitmq.stream
Interface EnvironmentBuilder.NettyConfiguration
- Enclosing interface:
EnvironmentBuilder
public static interface EnvironmentBuilder.NettyConfiguration
Helper to configure Netty
-
Method Summary
Modifier and TypeMethodDescriptionbootstrapCustomizer(Consumer<Bootstrap> bootstrapCustomizer) An extension point to customize Netty'sBootstraps used to configure connections.byteBufAllocator(ByteBufAllocator byteBufAllocator) Netty'sByteBufallocator.channelCustomizer(Consumer<Channel> channelCustomizer) An extension point to customize Netty'sChannels used for connections.Go back to the environment buildereventLoopGroup(EventLoopGroup eventLoopGroup) TheEventLoopGroupinstance to use.
-
Method Details
-
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
Netty'sByteBufallocator.- Parameters:
byteBufAllocator-- Returns:
- the Netty configuration helper
-
channelCustomizer
An extension point to customize Netty'sChannels used for connections.- Parameters:
channelCustomizer-- Returns:
- the Netty configuration helper
-
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
-