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 Summary
Constructors Constructor Description KqueueProvider() -
Method Summary
Modifier and Type Method Description static EventLoopResourcesgetResources()Returns theEventLoopResourcesfor kqueue-backed transport.static booleanisAvailable()
-
Constructor Details
-
KqueueProvider
public KqueueProvider()
-
-
Method Details
-
isAvailable
public static boolean isAvailable()- Returns:
trueif kqueue is available.
-
getResources
Returns theEventLoopResourcesfor kqueue-backed transport. Check availability withisAvailable()prior to obtaining the resources.- Returns:
- the
EventLoopResources. May be unavailable. - Since:
- 6.0
-