Class IOUringTransport
- java.lang.Object
-
- io.helidon.webserver.transport.netty.iouring.IOUringTransport
-
-
Constructor Summary
Constructors Constructor Description IOUringTransport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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.
-
-
-
Method Detail
-
isAvailableFor
public boolean isAvailableFor(WebServer webServer)
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:
IOUring,IOUringEventLoopGroup,IOUringServerSocketChannel
-
-