Top Description Inners Fields Constructors Methods
io.netty.util.concurrent

public final Class DefaultEventExecutorChooserFactory

extends Object
implements EventExecutorChooserFactory
Class Inheritance
All Implemented Interfaces
io.netty.util.concurrent.EventExecutorChooserFactory
Annotations
@UnstableApi
Imports
io.netty.util.internal.UnstableApi, java.util.concurrent.atomic.AtomicInteger, .AtomicLong

Default implementation which uses simple round-robin to choose next EventExecutor.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
public static final DefaultEventExecutorChooserFactory

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static boolean
isPowerOfTwo(int val)

public EventExecutorChooserFactory.EventExecutorChooser
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final DefaultEventExecutorChooserFactory INSTANCE

Constructor Detail

DefaultEventExecutorChooserFactoryback to summary
private DefaultEventExecutorChooserFactory()

Method Detail

isPowerOfTwoback to summary
private static boolean isPowerOfTwo(int val)
newChooserback to summary
public EventExecutorChooserFactory.EventExecutorChooser newChooser(EventExecutor[] executors)

Implements io.netty.util.concurrent.EventExecutorChooserFactory.newChooser.

Doc from io.netty.util.concurrent.EventExecutorChooserFactory.newChooser.

Returns a new EventExecutorChooser.

Annotations
@Override
io.netty.util.concurrent back to summary

private final Class DefaultEventExecutorChooserFactory.GenericEventExecutorChooser

extends Object
implements EventExecutorChooser
Class Inheritance
  • java.lang.Object
  • io.netty.util.concurrent.DefaultEventExecutorChooserFactory.GenericEventExecutorChooser
All Implemented Interfaces
io.netty.util.concurrent.EventExecutorChooserFactory.EventExecutorChooser

Field Summary

Modifier and TypeField and Description
private final EventExecutor[]
private final AtomicLong

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public EventExecutor
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

executorsback to summary
private final EventExecutor[] executors
idxback to summary
private final AtomicLong idx

Constructor Detail

GenericEventExecutorChooserback to summary
pack-priv GenericEventExecutorChooser(EventExecutor[] executors)

Method Detail

nextback to summary
public EventExecutor next()

Implements io.netty.util.concurrent.EventExecutorChooserFactory.EventExecutorChooser.next.

Doc from io.netty.util.concurrent.EventExecutorChooserFactory.EventExecutorChooser.next.

Returns the new EventExecutor to use.

Annotations
@Override
io.netty.util.concurrent back to summary

private final Class DefaultEventExecutorChooserFactory.PowerOfTwoEventExecutorChooser

extends Object
implements EventExecutorChooser
Class Inheritance
  • java.lang.Object
  • io.netty.util.concurrent.DefaultEventExecutorChooserFactory.PowerOfTwoEventExecutorChooser
All Implemented Interfaces
io.netty.util.concurrent.EventExecutorChooserFactory.EventExecutorChooser

Field Summary

Modifier and TypeField and Description
private final EventExecutor[]
private final AtomicInteger

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public EventExecutor
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

executorsback to summary
private final EventExecutor[] executors
idxback to summary
private final AtomicInteger idx

Constructor Detail

PowerOfTwoEventExecutorChooserback to summary
pack-priv PowerOfTwoEventExecutorChooser(EventExecutor[] executors)

Method Detail

nextback to summary
public EventExecutor next()

Implements io.netty.util.concurrent.EventExecutorChooserFactory.EventExecutorChooser.next.

Doc from io.netty.util.concurrent.EventExecutorChooserFactory.EventExecutorChooser.next.

Returns the new EventExecutor to use.

Annotations
@Override