Module lettuce.core

Class IOUringProvider

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 Details

    • IOUringProvider

      public IOUringProvider()
  • Method Details

    • isAvailable

      public static boolean isAvailable()
      Returns:
      true if io_uring is available.
    • getResources

      public static EventLoopResources getResources()
      Returns the EventLoopResources for io_uring-backed transport. Check availability with isAvailable() 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