Module io.netty5.transport
Package io.netty5.bootstrap
Class AbstractBootstrapConfig<B extends AbstractBootstrap<B,C,F>,C extends Channel,F>
- java.lang.Object
-
- io.netty5.bootstrap.AbstractBootstrapConfig<B,C,F>
-
- Direct Known Subclasses:
BootstrapConfig
,ServerBootstrapConfig
public abstract class AbstractBootstrapConfig<B extends AbstractBootstrap<B,C,F>,C extends Channel,F> extends Object
Exposes the configuration of anAbstractBootstrap
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Map<AttributeKey<?>,Object>
attrs()
Returns a copy of the configured attributes.abstract F
channelFactory()
EventLoopGroup
group()
Returns the configuredEventLoopGroup
ornull
if non is configured yet.ChannelHandler
handler()
Returns the configuredChannelHandler
ornull
if non is configured yet.SocketAddress
localAddress()
Returns the configured local address ornull
if non is configured yet.Map<ChannelOption<?>,Object>
options()
Returns a copy of the configured options.String
toString()
-
-
-
Field Detail
-
bootstrap
protected final B extends AbstractBootstrap<B,C,F> bootstrap
-
-
Method Detail
-
localAddress
public final SocketAddress localAddress()
Returns the configured local address ornull
if non is configured yet.
-
channelFactory
public abstract F channelFactory()
-
handler
public final ChannelHandler handler()
Returns the configuredChannelHandler
ornull
if non is configured yet.
-
options
public final Map<ChannelOption<?>,Object> options()
Returns a copy of the configured options.
-
attrs
public final Map<AttributeKey<?>,Object> attrs()
Returns a copy of the configured attributes.
-
group
public final EventLoopGroup group()
Returns the configuredEventLoopGroup
ornull
if non is configured yet.
-
-