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 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 classDefaultEventExecutorChooserFactory.GenericEventExecutorChooserprivate static classDefaultEventExecutorChooserFactory.PowerOfTwoEventExecutorChooser-
Nested classes/interfaces inherited from interface io.netty.util.concurrent.EventExecutorChooserFactory
EventExecutorChooserFactory.EventExecutorChooser
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultEventExecutorChooserFactoryINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateDefaultEventExecutorChooserFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static booleanisPowerOfTwo(int val)EventExecutorChooserFactory.EventExecutorChoosernewChooser(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:EventExecutorChooserFactoryReturns a newEventExecutorChooserFactory.EventExecutorChooser.- Specified by:
newChooserin interfaceEventExecutorChooserFactory
-
isPowerOfTwo
private static boolean isPowerOfTwo(int val)
-
-