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'sBootstrap
s used to configure connections.byteBufAllocator
(ByteBufAllocator byteBufAllocator) Netty'sByteBuf
allocator.channelCustomizer
(Consumer<Channel> channelCustomizer) An extension point to customize Netty'sChannel
s used for connections.Go back to the environment buildereventLoopGroup
(EventLoopGroup eventLoopGroup) TheEventLoopGroup
instance to use.
-
Method Details
-
eventLoopGroup
TheEventLoopGroup
instance to use.The environment uses its own instance by default. It is the developer's responsibility to close the
EventLoopGroup
they provide.- Parameters:
eventLoopGroup
-- Returns:
- the Netty configuration helper
-
byteBufAllocator
Netty'sByteBuf
allocator.- Parameters:
byteBufAllocator
-- Returns:
- the Netty configuration helper
-
channelCustomizer
An extension point to customize Netty'sChannel
s used for connections.- Parameters:
channelCustomizer
-- Returns:
- the Netty configuration helper
-
bootstrapCustomizer
An extension point to customize Netty'sBootstrap
s used to configure connections.- Parameters:
bootstrapCustomizer
-- Returns:
- the Netty configuration helper
-
environmentBuilder
EnvironmentBuilder environmentBuilder()Go back to the environment builder- Returns:
- the environment builder
-