Bootstrap that makes it easy to bootstrap a Channel to use
for clients.
The bind() methods are useful in combination with connectionless transports such as datagram (UDP).
For regular TCP connections, please use the provided connect() methods.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile ChannelFactory | |
| private final BootstrapConfig | |
| private static final AddressResolverGroup | |
| private static final InternalLogger | |
| private volatile SocketAddress | |
| private volatile AddressResolverGroup |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Bootstrap | |
| public Bootstrap | channelFactory(ChannelFactory<? extends Channel> channelFactory)
|
| public Bootstrap | clone()
Implements abstract io. |
| public Bootstrap | clone(EventLoopGroup group)
Returns a deep clone of this bootstrap which has the identical configuration except that it uses
the given |
| public final BootstrapConfig | config()
Implements abstract io. AbstractBootstrapConfig object that can be used to obtain the current config
of the bootstrap.
|
| public Future | |
| public Future | |
| public Future | |
| public Future | |
| public Future | connect(SocketAddress remoteAddress, SocketAddress localAddress)
Connect a |
| private static void | doConnect(SocketAddress remoteAddress, SocketAddress localAddress, Channel channel, Promise<Channel> promise)
|
| private Future | |
| private void | doResolveAndConnect0(final Channel channel, SocketAddress remoteAddress, final SocketAddress localAddress, final Promise<Channel> promise)
|
| pack-priv Future | |
| pack-priv Channel | newChannel(EventLoop eventLoop)
Implements abstract io. |
| public Bootstrap | remoteAddress(SocketAddress remoteAddress)
The |
| public Bootstrap | |
| public Bootstrap | |
| pack-priv final SocketAddress | |
| public Bootstrap | resolver(AddressResolverGroup<?> resolver)
Sets the |
| pack-priv final AddressResolverGroup | |
| public Bootstrap |
| channelFactory | back to summary |
|---|---|
| pack-priv volatile ChannelFactory<? extends Channel> channelFactory | |
| config | back to summary |
|---|---|
| private final BootstrapConfig config | |
| DEFAULT_RESOLVER | back to summary |
|---|---|
| private static final AddressResolverGroup<?> DEFAULT_RESOLVER | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| remoteAddress | back to summary |
|---|---|
| private volatile SocketAddress remoteAddress | |
| resolver | back to summary |
|---|---|
private volatile AddressResolverGroup<SocketAddress> resolver
| |
| Bootstrap | back to summary |
|---|---|
| public Bootstrap() | |
| Bootstrap | back to summary |
|---|---|
| private Bootstrap(Bootstrap bootstrap) | |
| channel | back to summary |
|---|---|
| public Bootstrap channel(Class<? extends Channel> channelClass) The | |
| channelFactory | back to summary |
|---|---|
| public Bootstrap channelFactory(ChannelFactory<? extends Channel> channelFactory)
| |
| clone | back to summary |
|---|---|
| public Bootstrap clone() Implements abstract io. Doc from io. Returns a deep clone of this bootstrap which has the identical configuration. This method is useful when making
multiple
| |
| clone | back to summary |
|---|---|
| public Bootstrap clone(EventLoopGroup group) Returns a deep clone of this bootstrap which has the identical configuration except that it uses
the given | |
| config | back to summary |
|---|---|
| public final BootstrapConfig config() Implements abstract io. Doc from io. Returns the
| |
| connect | back to summary |
|---|---|
| public Future Connect a | |
| connect | back to summary |
|---|---|
| public Future Connect a | |
| connect | back to summary |
|---|---|
| public Future Connect a | |
| connect | back to summary |
|---|---|
| public Future Connect a | |
| connect | back to summary |
|---|---|
| public Future Connect a | |
| doConnect | back to summary |
|---|---|
| private static void doConnect(SocketAddress remoteAddress, SocketAddress localAddress, Channel channel, Promise<Channel> promise) | |
| doResolveAndConnect | back to summary |
|---|---|
private Future
| |
| doResolveAndConnect0 | back to summary |
|---|---|
| private void doResolveAndConnect0(final Channel channel, SocketAddress remoteAddress, final SocketAddress localAddress, final Promise<Channel> promise) | |
| init | back to summary |
|---|---|
| pack-priv Future Implements abstract io.
| |
| newChannel | back to summary |
|---|---|
| pack-priv Channel newChannel(EventLoop eventLoop) throws Exception Implements abstract io.
| |
| remoteAddress | back to summary |
|---|---|
| public Bootstrap remoteAddress(SocketAddress remoteAddress) The | |
| remoteAddress | back to summary |
|---|---|
public Bootstrap remoteAddress(String inetHost, int inetPort)
| |
| remoteAddress | back to summary |
|---|---|
public Bootstrap remoteAddress(InetAddress inetHost, int inetPort)
| |
| remoteAddress | back to summary |
|---|---|
| pack-priv final SocketAddress remoteAddress() | |
| resolver | back to summary |
|---|---|
| public Bootstrap resolver(AddressResolverGroup<?> resolver) Sets the
| |
| resolver | back to summary |
|---|---|
| pack-priv final AddressResolverGroup | |
| validate | back to summary |
|---|---|
| public Bootstrap validate() Overrides io. Doc from io. Validate all the parameters. Sub-classes may override this, but should call the super method in that case.
| |