Package io.micronaut.http.server.netty
Interface NettyEmbeddedServices
-
- All Known Implementing Classes:
DefaultNettyEmbeddedServerFactory
@Internal public interface NettyEmbeddedServicesInternal interface with services required by theNettyHttpServer. e- Since:
- 3.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description io.netty.channel.EventLoopGroupcreateEventLoopGroup(int numThreads, java.util.concurrent.ExecutorService executorService, java.lang.Integer ioRatio)Creates the event loop group configuration.io.netty.channel.EventLoopGroupcreateEventLoopGroup(io.micronaut.http.netty.channel.EventLoopGroupConfiguration config)Creates the event loop group configuration.io.micronaut.context.ApplicationContextgetApplicationContext()io.micronaut.http.netty.channel.converters.ChannelOptionFactorygetChannelOptionFactory()default io.netty.channel.ServerChannelgetDomainServerChannelInstance(io.micronaut.http.netty.channel.EventLoopGroupConfiguration workerConfig)Gets the domain server socket channel instance.io.micronaut.http.netty.channel.EventLoopGroupRegistrygetEventLoopGroupRegistry()<E> io.micronaut.context.event.ApplicationEventPublisher<E>getEventPublisher(java.lang.Class<E> eventClass)Get an event publisher for the server for the given type.default io.micronaut.scheduling.executor.ExecutorSelectorgetExecutorSelector()HttpCompressionStrategygetHttpCompressionStrategy()io.micronaut.http.codec.MediaTypeCodecRegistrygetMediaTypeCodecRegistry()java.util.List<io.netty.channel.ChannelOutboundHandler>getOutboundHandlers()default io.micronaut.http.server.binding.RequestArgumentSatisfiergetRequestArgumentSatisfier()io.micronaut.http.server.RouteExecutorgetRouteExecutor()default io.micronaut.web.router.RoutergetRouter()io.netty.channel.socket.ServerSocketChannelgetServerSocketChannelInstance(io.micronaut.http.netty.channel.EventLoopGroupConfiguration workerConfig)Gets the server socket channel instance.ServerSslBuildergetServerSslBuilder()io.micronaut.web.router.resource.StaticResourceResolvergetStaticResourceResolver()io.micronaut.websocket.context.WebSocketBeanRegistrygetWebSocketBeanRegistry()
-
-
-
Method Detail
-
getOutboundHandlers
@NonNull java.util.List<io.netty.channel.ChannelOutboundHandler> getOutboundHandlers()
- Returns:
- The channel outbound handlers
-
getApplicationContext
@NonNull io.micronaut.context.ApplicationContext getApplicationContext()
- Returns:
- The application context
-
getRequestArgumentSatisfier
@NonNull default io.micronaut.http.server.binding.RequestArgumentSatisfier getRequestArgumentSatisfier()
- Returns:
- The request argument satisfier
- See Also:
RequestArgumentSatisfier
-
getRouteExecutor
@NonNull io.micronaut.http.server.RouteExecutor getRouteExecutor()
- Returns:
- The route executor
- See Also:
RouteExecutor
-
getMediaTypeCodecRegistry
@NonNull io.micronaut.http.codec.MediaTypeCodecRegistry getMediaTypeCodecRegistry()
- Returns:
- The media type code registry
- See Also:
MediaTypeCodecRegistry
-
getStaticResourceResolver
@NonNull io.micronaut.web.router.resource.StaticResourceResolver getStaticResourceResolver()
- Returns:
- The static resource resolver
- See Also:
StaticResourceResolver
-
getExecutorSelector
@NonNull default io.micronaut.scheduling.executor.ExecutorSelector getExecutorSelector()
- Returns:
- The executor resolver
-
getServerSslBuilder
@Nullable ServerSslBuilder getServerSslBuilder()
- Returns:
- The server SSL builder or
nullif none is configured - See Also:
CertificateProvidedSslBuilder
-
getChannelOptionFactory
@NonNull io.micronaut.http.netty.channel.converters.ChannelOptionFactory getChannelOptionFactory()
- Returns:
- The channel option factory
-
getHttpCompressionStrategy
@NonNull HttpCompressionStrategy getHttpCompressionStrategy()
- Returns:
- The http compression strategy
-
getWebSocketBeanRegistry
@NonNull io.micronaut.websocket.context.WebSocketBeanRegistry getWebSocketBeanRegistry()
- Returns:
- The websocket bean registry
-
getEventLoopGroupRegistry
@NonNull io.micronaut.http.netty.channel.EventLoopGroupRegistry getEventLoopGroupRegistry()
- Returns:
- The event loop group registry.
-
getRouter
@NonNull default io.micronaut.web.router.Router getRouter()
- Returns:
- Obtains the router
-
createEventLoopGroup
@NonNull io.netty.channel.EventLoopGroup createEventLoopGroup(@NonNull io.micronaut.http.netty.channel.EventLoopGroupConfiguration config)Creates the event loop group configuration.- Parameters:
config- The config- Returns:
- The event loop group config
-
createEventLoopGroup
@NonNull io.netty.channel.EventLoopGroup createEventLoopGroup(int numThreads, @NonNull java.util.concurrent.ExecutorService executorService, @Nullable java.lang.Integer ioRatio)Creates the event loop group configuration.- Parameters:
numThreads- The number of threadsexecutorService- The executor serviceioRatio- The I/O ratio- Returns:
- The event loop group
-
getServerSocketChannelInstance
@NonNull io.netty.channel.socket.ServerSocketChannel getServerSocketChannelInstance(@NonNull io.micronaut.http.netty.channel.EventLoopGroupConfiguration workerConfig)Gets the server socket channel instance.- Parameters:
workerConfig- The worker config- Returns:
- The
ServerSocketChannel
-
getDomainServerChannelInstance
@NonNull default io.netty.channel.ServerChannel getDomainServerChannelInstance(@NonNull io.micronaut.http.netty.channel.EventLoopGroupConfiguration workerConfig)Gets the domain server socket channel instance.- Parameters:
workerConfig- The worker config- Returns:
- The
DomainSocketChannel - Throws:
java.lang.UnsupportedOperationException- if domain sockets are not supported.
-
getEventPublisher
@NonNull <E> io.micronaut.context.event.ApplicationEventPublisher<E> getEventPublisher(@NonNull java.lang.Class<E> eventClass)Get an event publisher for the server for the given type.- Type Parameters:
E- The event generic type- Parameters:
eventClass- The event publisher- Returns:
- The event publisher
-
-