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