public class EpollProvider extends Object
ClassNotFoundException
's caused by the absence of
the netty-transport-native-epoll library during runtime. Internal API.Modifier and Type | Class and Description |
---|---|
static interface |
EpollProvider.EpollResources |
Constructor and Description |
---|
EpollProvider() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isAvailable() |
static boolean |
isEventLoopGroup(Class<? extends EventExecutorGroup> type) |
static EventLoopGroup |
newEventLoopGroup(int nThreads,
ThreadFactory threadFactory)
Create a new
EpollEventLoopGroup . |
public static boolean isAvailable()
true
if epoll is available.public static boolean isEventLoopGroup(Class<? extends EventExecutorGroup> type)
type
- must not be null
.true
if type
is a EpollEventLoopGroup
.public static EventLoopGroup newEventLoopGroup(int nThreads, ThreadFactory threadFactory)
EpollEventLoopGroup
.nThreads
- threadFactory
- EventLoopGroup
.Copyright © 2020 lettuce.io. All rights reserved.