Class DefaultEventExecutorChooserFactory
java.lang.Object
io.netty.util.concurrent.DefaultEventExecutorChooserFactory
- All Implemented Interfaces:
EventExecutorChooserFactory
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 classprivate static final classNested classes/interfaces inherited from interface EventExecutorChooserFactory
EventExecutorChooserFactory.EventExecutorChooser -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanisPowerOfTwo(int val) newChooser(EventExecutor[] executors) Returns a newEventExecutorChooserFactory.EventExecutorChooser.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DefaultEventExecutorChooserFactory
private DefaultEventExecutorChooserFactory()
-
-
Method Details
-
newChooser
Description copied from interface:EventExecutorChooserFactoryReturns a newEventExecutorChooserFactory.EventExecutorChooser.- Specified by:
newChooserin interfaceEventExecutorChooserFactory
-
isPowerOfTwo
private static boolean isPowerOfTwo(int val)
-