Class IoUringEventLoopGroupFactory
java.lang.Object
io.micronaut.http.netty.channel.IoUringEventLoopGroupFactory
- All Implemented Interfaces:
EventLoopGroupFactory
@Singleton
@Requires(classes=io.netty.channel.uring.IoUring.class,
condition=IoUringAvailabilityCondition.class)
@Internal
@Named("io_uring")
@Order(200)
public class IoUringEventLoopGroupFactory
extends Object
implements EventLoopGroupFactory
Factory for IOUringEventLoopGroup.
- Since:
- 4.0.0
- Author:
- Jonas Konrad
-
Field Summary
FieldsFields inherited from interface EventLoopGroupFactory
NATIVE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends io.netty.channel.Channel> channelClass(NettyChannelType type) Returns the domain socket server channel class.Class<? extends io.netty.channel.Channel> channelClass(NettyChannelType type, @Nullable EventLoopGroupConfiguration configuration) Returns the domain socket server channel class.io.netty.channel.ChannelchannelInstance(NettyChannelType type, @Nullable EventLoopGroupConfiguration configuration) Returns the domain socket server channel class.io.netty.channel.IoHandlerFactoryCreate a newIoHandlerFactoryfor this transport.booleanisNative()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EventLoopGroupFactory
channelInstance, channelInstance, clientSocketChannelClass, clientSocketChannelInstance, createEventLoopGroup, createEventLoopGroup, createEventLoopGroup, createEventLoopGroup, createIoHandlerFactory, domainServerSocketChannelClass, domainServerSocketChannelClass, domainServerSocketChannelInstance, serverSocketChannelClass, serverSocketChannelClass, serverSocketChannelInstance
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
IoUringEventLoopGroupFactory
public IoUringEventLoopGroupFactory()
-
-
Method Details
-
createIoHandlerFactory
public io.netty.channel.IoHandlerFactory createIoHandlerFactory()Description copied from interface:EventLoopGroupFactoryCreate a newIoHandlerFactoryfor this transport.- Specified by:
createIoHandlerFactoryin interfaceEventLoopGroupFactory- Returns:
- The handler factory
-
isNative
public boolean isNative()- Specified by:
isNativein interfaceEventLoopGroupFactory- Returns:
- Is this a native factory.
-
channelClass
public Class<? extends io.netty.channel.Channel> channelClass(NettyChannelType type) throws UnsupportedOperationException Description copied from interface:EventLoopGroupFactoryReturns the domain socket server channel class.- Specified by:
channelClassin interfaceEventLoopGroupFactory- Parameters:
type- Type of the channel to return- Returns:
- A channel class.
- Throws:
UnsupportedOperationException- if domain sockets are not supported.
-
channelClass
public Class<? extends io.netty.channel.Channel> channelClass(NettyChannelType type, @Nullable EventLoopGroupConfiguration configuration) Description copied from interface:EventLoopGroupFactoryReturns the domain socket server channel class.- Specified by:
channelClassin interfaceEventLoopGroupFactory- Parameters:
type- Type of the channel to returnconfiguration- The configuration- Returns:
- A channel implementation.
-
channelInstance
public io.netty.channel.Channel channelInstance(NettyChannelType type, @Nullable EventLoopGroupConfiguration configuration) Description copied from interface:EventLoopGroupFactoryReturns the domain socket server channel class.- Specified by:
channelInstancein interfaceEventLoopGroupFactory- Parameters:
type- Type of the channel to returnconfiguration- The configuration- Returns:
- A ServerDomainSocketChannel implementation.
-