Package io.micronaut.http.netty.channel
Interface EventLoopGroupRegistry
-
- All Known Implementing Classes:
DefaultEventLoopGroupRegistry
public interface EventLoopGroupRegistryRegistry of configured event loops.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.netty.channel.EventLoopGroupgetDefaultEventLoopGroup()java.util.Optional<io.netty.channel.EventLoopGroup>getEventLoopGroup(java.lang.String name)Obtain a configured Event Loop Group from the registry.java.util.Optional<EventLoopGroupConfiguration>getEventLoopGroupConfiguration(java.lang.String name)Obtain a configured Event Loop Group from the registry.
-
-
-
Method Detail
-
getEventLoopGroup
java.util.Optional<io.netty.channel.EventLoopGroup> getEventLoopGroup(@NonNull java.lang.String name)Obtain a configured Event Loop Group from the registry.- Parameters:
name- The name of the group- Returns:
- The event loop group if configured
-
getDefaultEventLoopGroup
@NonNull io.netty.channel.EventLoopGroup getDefaultEventLoopGroup()
- Returns:
- Obtains the default event loop group.
-
getEventLoopGroupConfiguration
java.util.Optional<EventLoopGroupConfiguration> getEventLoopGroupConfiguration(@NonNull java.lang.String name)
Obtain a configured Event Loop Group from the registry.- Parameters:
name- The name of the group- Returns:
- The event loop group if configured
-
-