@UnstableApi public final class DefaultEventExecutorChooserFactory extends java.lang.Object implements EventExecutorChooserFactory
EventExecutor.| Modifier and Type | Class and Description |
|---|---|
private static class |
DefaultEventExecutorChooserFactory.GenericEventExecutorChooser |
private static class |
DefaultEventExecutorChooserFactory.PowerOfTwoEventExecutorChooser |
EventExecutorChooserFactory.EventExecutorChooser| Modifier and Type | Field and Description |
|---|---|
static DefaultEventExecutorChooserFactory |
INSTANCE |
| Modifier | Constructor and Description |
|---|---|
private |
DefaultEventExecutorChooserFactory() |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
isPowerOfTwo(int val) |
EventExecutorChooserFactory.EventExecutorChooser |
newChooser(EventExecutor[] executors)
Returns a new
EventExecutorChooserFactory.EventExecutorChooser. |
public static final DefaultEventExecutorChooserFactory INSTANCE
public EventExecutorChooserFactory.EventExecutorChooser newChooser(EventExecutor[] executors)
EventExecutorChooserFactoryEventExecutorChooserFactory.EventExecutorChooser.newChooser in interface EventExecutorChooserFactoryprivate static boolean isPowerOfTwo(int val)