Package io.netty.util.concurrent
Class DefaultEventExecutorChooserFactory
java.lang.Object
io.netty.util.concurrent.DefaultEventExecutorChooserFactory
- All Implemented Interfaces:
EventExecutorChooserFactory
@UnstableApi
public final class DefaultEventExecutorChooserFactory
extends Object
implements EventExecutorChooserFactory
Default implementation which uses simple round-robin to choose next
EventExecutor
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
Nested classes/interfaces inherited from interface io.netty.util.concurrent.EventExecutorChooserFactory
EventExecutorChooserFactory.EventExecutorChooser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
isPowerOfTwo
(int val) newChooser
(EventExecutor[] executors) Returns a newEventExecutorChooserFactory.EventExecutorChooser
.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DefaultEventExecutorChooserFactory
private DefaultEventExecutorChooserFactory()
-
-
Method Details
-
newChooser
Description copied from interface:EventExecutorChooserFactory
Returns a newEventExecutorChooserFactory.EventExecutorChooser
.- Specified by:
newChooser
in interfaceEventExecutorChooserFactory
-
isPowerOfTwo
private static boolean isPowerOfTwo(int val)
-