AbstractBootstrap is a helper class that makes it easy to bootstrap a Channel. It support
method-chaining to provide an easy way to configure the AbstractBootstrap.
When not used in a ServerBootstrap context, the bind() methods are useful for connectionless
transports such as datagram (UDP).
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private static final Map. | |
| private static final Map. | |
| pack-priv volatile EventLoopGroup | |
| private volatile ChannelHandler | |
| private volatile SocketAddress | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public <T> B | attr(AttributeKey<T> key, T value)
Allow to specify an initial attribute of the newly created |
| pack-priv final Map | |
| public Future | |
| public Future | |
| public Future | |
| public Future | |
| public Future | |
| public abstract B | clone()
Overrides java. |
| public abstract AbstractBootstrapConfig | config()
Returns the |
| pack-priv static <K, V> Map | |
| public Channel | |
| private Future | |
| private static void | |
| public B | group(EventLoopGroup group)
The |
| public final EventLoopGroup | group()
Deprecated
Use
Returns the configured config() instead.
EventLoopGroup or null if non is configured yet.
|
| public B | |
| pack-priv final ChannelHandler | |
| pack-priv abstract Future | |
| pack-priv final Future | |
| pack-priv final Channel | |
| public B | |
| public B | |
| public B | |
| public B | |
| pack-priv final SocketAddress | |
| pack-priv final Map. | |
| pack-priv static Map. | |
| pack-priv abstract C | |
| pack-priv final Map. | |
| pack-priv static Map. | |
| public <T> B | option(ChannelOption<T> option, T value)
Allow to specify a |
| pack-priv final Map | |
| public Future | |
| private B | |
| pack-priv static void | |
| private static void | |
| pack-priv static void | setChannelOptions(Channel channel, Map.
|
| public String | |
| public B |
| attrs | back to summary |
|---|---|
| private final Map<AttributeKey<?>, Object> attrs | |
| EMPTY_ATTRIBUTE_ARRAY | back to summary |
|---|---|
private static final Map.
| |
| EMPTY_OPTION_ARRAY | back to summary |
|---|---|
private static final Map.
| |
| group | back to summary |
|---|---|
| pack-priv volatile EventLoopGroup group | |
| handler | back to summary |
|---|---|
| private volatile ChannelHandler handler | |
| localAddress | back to summary |
|---|---|
| private volatile SocketAddress localAddress | |
| options | back to summary |
|---|---|
| private final Map<ChannelOption<?>, Object> options | |
| AbstractBootstrap | back to summary |
|---|---|
| pack-priv AbstractBootstrap() | |
| AbstractBootstrap | back to summary |
|---|---|
| pack-priv AbstractBootstrap(AbstractBootstrap<B, C, F> bootstrap) | |
| attr | back to summary |
|---|---|
| public <T> B attr(AttributeKey<T> key, T value) Allow to specify an initial attribute of the newly created | |
| attrs | back to summary |
|---|---|
| pack-priv final Map | |
| bind | back to summary |
|---|---|
| public Future Create a new | |
| bind | back to summary |
|---|---|
| public Future Create a new | |
| bind | back to summary |
|---|---|
| public Future Create a new | |
| bind | back to summary |
|---|---|
| public Future Create a new | |
| bind | back to summary |
|---|---|
| public Future Create a new | |
| clone | back to summary |
|---|---|
| public abstract B clone() Overrides java. Returns a deep clone of this bootstrap which has the identical configuration. This method is useful when making
multiple
| |
| config | back to summary |
|---|---|
| public abstract AbstractBootstrapConfig Returns the | |
| copiedMap | back to summary |
|---|---|
| pack-priv static <K, V> Map | |
| createUnregistered | back to summary |
|---|---|
| public Channel createUnregistered() throws Exception Create a new unregistered channel. The channel must then be registered separately. | |
| doBind | back to summary |
|---|---|
| private Future | |
| doBind0 | back to summary |
|---|---|
| private static void doBind0(final Future<Channel> regFuture, final Channel channel, final SocketAddress localAddress, final Promise<Void> promise) | |
| group | back to summary |
|---|---|
| public B group(EventLoopGroup group) The | |
| group | back to summary |
|---|---|
| public final EventLoopGroup group()
Deprecated Use Returns the configured
| |
| handler | back to summary |
|---|---|
| public B handler(ChannelHandler handler) the | |
| handler | back to summary |
|---|---|
| pack-priv final ChannelHandler handler() | |
| init | back to summary |
|---|---|
| pack-priv abstract Future | |
| initAndRegister | back to summary |
|---|---|
| pack-priv final Future | |
| initWithoutRegister | back to summary |
|---|---|
| pack-priv final Channel initWithoutRegister() throws Exception | |
| localAddress | back to summary |
|---|---|
| public B localAddress(SocketAddress localAddress) The | |
| localAddress | back to summary |
|---|---|
public B localAddress(int inetPort)
| |
| localAddress | back to summary |
|---|---|
public B localAddress(String inetHost, int inetPort)
| |
| localAddress | back to summary |
|---|---|
public B localAddress(InetAddress inetHost, int inetPort)
| |
| localAddress | back to summary |
|---|---|
| pack-priv final SocketAddress localAddress() | |
| newAttributesArray | back to summary |
|---|---|
| pack-priv final Map. | |
| newAttributesArray | back to summary |
|---|---|
| pack-priv static Map. | |
| newChannel | back to summary |
|---|---|
| pack-priv abstract C newChannel(EventLoop loop) throws Exception | |
| newOptionsArray | back to summary |
|---|---|
| pack-priv final Map. | |
| newOptionsArray | back to summary |
|---|---|
| pack-priv static Map. | |
| option | back to summary |
|---|---|
| public <T> B option(ChannelOption<T> option, T value) Allow to specify a | |
| options | back to summary |
|---|---|
| pack-priv final Map | |
| register | back to summary |
|---|---|
| public Future | |
| self | back to summary |
|---|---|
private B self()
| |
| setAttributes | back to summary |
|---|---|
| pack-priv static void setAttributes(Channel channel, Map. | |
| setChannelOption | back to summary |
|---|---|
private static void setChannelOption(Channel channel, ChannelOption<?> option, Object value, InternalLogger logger)
| |
| setChannelOptions | back to summary |
|---|---|
| pack-priv static void setChannelOptions(Channel channel, Map. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| validate | back to summary |
|---|---|
| public B validate() Validate all the parameters. Sub-classes may override this, but should call the super method in that case. | |