Package com.rabbitmq.stream
Interface EnvironmentBuilder.NettyConfiguration
-
- Enclosing interface:
- EnvironmentBuilder
public static interface EnvironmentBuilder.NettyConfiguration
Helper to configure Netty
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EnvironmentBuilder.NettyConfiguration
bootstrapCustomizer(Consumer<Bootstrap> bootstrapCustomizer)
An extension point to customize Netty'sBootstrap
s used to configure connections.EnvironmentBuilder.NettyConfiguration
byteBufAllocator(ByteBufAllocator byteBufAllocator)
Netty'sByteBuf
allocator.EnvironmentBuilder.NettyConfiguration
channelCustomizer(Consumer<Channel> channelCustomizer)
An extension point to customize Netty'sChannel
s used for connections.EnvironmentBuilder
environmentBuilder()
Go back to the environment builderEnvironmentBuilder.NettyConfiguration
eventLoopGroup(EventLoopGroup eventLoopGroup)
TheEventLoopGroup
instance to use.
-
-
-
Method Detail
-
eventLoopGroup
EnvironmentBuilder.NettyConfiguration eventLoopGroup(EventLoopGroup 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
EnvironmentBuilder.NettyConfiguration byteBufAllocator(ByteBufAllocator byteBufAllocator)
Netty'sByteBuf
allocator.- Parameters:
byteBufAllocator
-- Returns:
- the Netty configuration helper
-
channelCustomizer
EnvironmentBuilder.NettyConfiguration channelCustomizer(Consumer<Channel> channelCustomizer)
An extension point to customize Netty'sChannel
s used for connections.- Parameters:
channelCustomizer
-- Returns:
- the Netty configuration helper
-
bootstrapCustomizer
EnvironmentBuilder.NettyConfiguration bootstrapCustomizer(Consumer<Bootstrap> 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
-
-