public class Bootstrap extends AbstractBootstrap<Bootstrap>
AbstractBootstrap.ChannelFactory| Constructor and Description |
|---|
Bootstrap() |
| Modifier and Type | Method and Description |
|---|---|
ChannelFuture |
bind(ChannelFuture future)
Bind the
Channel of the given AbstractBootstrap.ChannelFactory. |
ChannelFuture |
connect()
Connect a
Channel to the remote peer. |
ChannelFuture |
connect(ChannelFuture future)
See
connect() |
Bootstrap |
duplicate()
|
Bootstrap |
remoteAddress(InetAddress host,
int port)
|
Bootstrap |
remoteAddress(SocketAddress remoteAddress)
The
SocketAddress to connect to once the connect() method
is called. |
Bootstrap |
remoteAddress(String host,
int port)
|
protected void |
validate()
Validate all the parameters.
|
attr, attrs, bind, channel, channelFactory, ensureOpen, factory, group, group, handler, handler, localAddress, localAddress, localAddress, localAddress, localAddress, option, options, shutdown, validatepublic Bootstrap remoteAddress(SocketAddress remoteAddress)
SocketAddress to connect to once the connect() method
is called.public Bootstrap remoteAddress(InetAddress host, int port)
public ChannelFuture bind(ChannelFuture future)
AbstractBootstrapChannel of the given AbstractBootstrap.ChannelFactory.bind in class AbstractBootstrap<Bootstrap>public ChannelFuture connect()
Channel to the remote peer.public ChannelFuture connect(ChannelFuture future)
connect()protected void validate()
AbstractBootstrapvalidate in class AbstractBootstrap<Bootstrap>public Bootstrap duplicate()
Copyright © 2008-2012 The Netty Project. All Rights Reserved.