Top Description Fields Constructors Methods
io.netty.bootstrap

public abstract Class AbstractBootstrapConfig<B extends AbstractBootstrap<B, C>, C extends Channel>

extends Object
Class Inheritance
Known Direct Subclasses
io.netty.bootstrap.BootstrapConfig, io.netty.bootstrap.ServerBootstrapConfig
Imports
io.netty.channel.Channel, .ChannelHandler, .ChannelOption, .EventLoopGroup, io.netty.util.AttributeKey, io.netty.util.internal.ObjectUtil, .StringUtil, java.net.SocketAddress, java.util.Map

Exposes the configuration of an AbstractBootstrap.

Field Summary

Modifier and TypeField and Description
protected final B

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public final Map<AttributeKey<?>, Object>
attrs()

Returns a copy of the configured attributes.

public final ChannelFactory<? extends C>
channelFactory()

Deprecated as a consequence of ChannelFactory being deprecated.
Returns the configured ChannelFactory or null if non is configured yet.
public final EventLoopGroup
group()

Returns the configured EventLoopGroup or null if non is configured yet.

public final ChannelHandler
handler()

Returns the configured ChannelHandler or null if non is configured yet.

public final SocketAddress
localAddress()

Returns the configured local address or null if non is configured yet.

public final Map<ChannelOption<?>, Object>
options()

Returns a copy of the configured options.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

bootstrapback to summary
protected final B bootstrap

Constructor Detail

AbstractBootstrapConfigback to summary
protected AbstractBootstrapConfig(B bootstrap)

Method Detail

attrsback to summary
public final Map<AttributeKey<?>, Object> attrs()

Returns a copy of the configured attributes.

channelFactoryback to summary
public final ChannelFactory<? extends C> channelFactory()

Deprecated

as a consequence of ChannelFactory being deprecated. See corresponding docs for further information.

Returns the configured ChannelFactory or null if non is configured yet.

Annotations
@SuppressWarnings:deprecation
groupback to summary
public final EventLoopGroup group()

Returns the configured EventLoopGroup or null if non is configured yet.

Annotations
@SuppressWarnings:deprecation
handlerback to summary
public final ChannelHandler handler()

Returns the configured ChannelHandler or null if non is configured yet.

localAddressback to summary
public final SocketAddress localAddress()

Returns the configured local address or null if non is configured yet.

optionsback to summary
public final Map<ChannelOption<?>, Object> options()

Returns a copy of the configured options.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override