Module lettuce.core

Class KqueueProvider

java.lang.Object
io.lettuce.core.resource.KqueueProvider

public class KqueueProvider
extends Object
Wraps and provides kqueue classes. This is to protect the user from ClassNotFoundException's caused by the absence of the netty-transport-native-kqueue library during runtime. Internal API.
Since:
4.4
Author:
Mark Paluch, Yohei Ueki
  • Constructor Details

    • KqueueProvider

      public KqueueProvider()
  • Method Details

    • isAvailable

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

      public static EventLoopResources getResources()
      Returns the EventLoopResources for kqueue-backed transport. Check availability with isAvailable() prior to obtaining the resources.
      Returns:
      the EventLoopResources. May be unavailable.
      Since:
      6.0