Class IOUringTransport
java.lang.Object
io.helidon.webserver.transport.netty.iouring.IOUringTransport
- All Implemented Interfaces:
Transport
A
Transport implementation based upon Netty's iouring-based native transport.
This Transport implementation is currently experimental
and its API and implementation are subject to change.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Optional<T>createTransportArtifact(Class<T> artifactType, String artifactName, ServerConfiguration config) Returns an artifact corresponding to the supplied artifact coordinates, if one is available.booleanisAvailableFor(WebServer webServer) ReturnstruewhenIOUring.isAvailable()returnstrueandfalseotherwise.
-
Constructor Details
-
IOUringTransport
public IOUringTransport()
-
-
Method Details
-
isAvailableFor
ReturnstruewhenIOUring.isAvailable()returnstrueandfalseotherwise.- Specified by:
isAvailableForin interfaceTransport- Parameters:
webServer- theWebServerimplementation in a deliberately undefined state and currently being constructed- Returns:
truewhenIOUring.isAvailable()returnstrue;falseotherwise
-
createTransportArtifact
public <T> Optional<T> createTransportArtifact(Class<T> artifactType, String artifactName, ServerConfiguration config) Returns an artifact corresponding to the supplied artifact coordinates, if one is available.Specifically, this method will return a non-empty
Optionalonly if one of the following conditions is true:artifactTypeis a subtype ofEventLoopGroupandartifactNameis exactly equal to eitherbossGrouporworkerGroupartifactTypeis a subtype ofChannelFactoryandartifactNameis exactly equal toserverChannelFactory
- Specified by:
createTransportArtifactin interfaceTransport- Type Parameters:
T- the type of the transport artifact- Parameters:
artifactType- aClassindicating the kind of artifact to be returned; must not benull; may usefully only be a subtype of eitherEventLoopGrouporChannelFactory<? extends ServerChannel>artifactName- aStringindicating which of possibly several artifacts of the same kind to be returned; must not benullconfig- theServerConfigurationin effect; must not benull- Returns:
- an
Optional, which may be empty but which will never benull - Throws:
NullPointerException- if any argument isnull- See Also:
-
IOUringIOUringEventLoopGroupIOUringServerSocketChannel
-