private static final class DefaultEventExecutorChooserFactory.PowerOfTwoEventExecutorChooser extends java.lang.Object implements EventExecutorChooserFactory.EventExecutorChooser
Modifier and Type | Field and Description |
---|---|
private EventExecutor[] |
executors |
private java.util.concurrent.atomic.AtomicInteger |
idx |
Constructor and Description |
---|
PowerOfTwoEventExecutorChooser(EventExecutor[] executors) |
Modifier and Type | Method and Description |
---|---|
EventExecutor |
next()
Returns the new
EventExecutor to use. |
private final java.util.concurrent.atomic.AtomicInteger idx
private final EventExecutor[] executors
PowerOfTwoEventExecutorChooser(EventExecutor[] executors)
public EventExecutor next()
EventExecutorChooserFactory.EventExecutorChooser
EventExecutor
to use.next
in interface EventExecutorChooserFactory.EventExecutorChooser