java.lang.Object
io.lettuce.core.resource.IOUringProvider
public class IOUringProvider extends Object
Wraps and provides io_uring classes. This is to protect the user from
ClassNotFoundException's caused by the absence
of the netty-incubator-transport-native-io_uring library during runtime. Internal API.- Since:
- 6.1
- Author:
- Mark Paluch
-
Constructor Summary
Constructors Constructor Description IOUringProvider() -
Method Summary
Modifier and Type Method Description static voidapplyKeepAlive(Bootstrap bootstrap, int count, Duration idle, Duration interval)Apply Keep-Alive options.static EventLoopResourcesgetResources()Returns theEventLoopResourcesfor io_uring-backed transport.static booleanisAvailable()
-
Constructor Details
-
IOUringProvider
public IOUringProvider()
-
-
Method Details
-
isAvailable
public static boolean isAvailable()- Returns:
trueif io_uring is available.
-
getResources
Returns theEventLoopResourcesfor io_uring-backed transport. Check availability withisAvailable()prior to obtaining the resources.- Returns:
- the
EventLoopResources. May be unavailable.
-
applyKeepAlive
public static void applyKeepAlive(Bootstrap bootstrap, int count, Duration idle, Duration interval)Apply Keep-Alive options.- Since:
- 6.1
-