public class Bootstrap extends Object
| Constructor and Description |
|---|
Bootstrap() |
| Modifier and Type | Method and Description |
|---|---|
ChannelFuture |
bind() |
ChannelFuture |
bind(ChannelFuture future) |
Bootstrap |
channel(Channel channel) |
ChannelFuture |
connect() |
ChannelFuture |
connect(ChannelFuture future) |
Bootstrap |
group(EventLoopGroup group) |
Bootstrap |
handler(ChannelHandler handler) |
Bootstrap |
localAddress(InetAddress host,
int port) |
Bootstrap |
localAddress(int port) |
Bootstrap |
localAddress(SocketAddress localAddress) |
Bootstrap |
localAddress(String host,
int port) |
<T> Bootstrap |
option(ChannelOption<T> option,
T value) |
Bootstrap |
remoteAddress(InetAddress host,
int port) |
Bootstrap |
remoteAddress(SocketAddress remoteAddress) |
Bootstrap |
remoteAddress(String host,
int port) |
void |
shutdown() |
public Bootstrap group(EventLoopGroup group)
public <T> Bootstrap option(ChannelOption<T> option, T value)
public Bootstrap handler(ChannelHandler handler)
public Bootstrap localAddress(SocketAddress localAddress)
public Bootstrap localAddress(int port)
public Bootstrap localAddress(InetAddress host, int port)
public Bootstrap remoteAddress(SocketAddress remoteAddress)
public Bootstrap remoteAddress(InetAddress host, int port)
public ChannelFuture bind()
public ChannelFuture bind(ChannelFuture future)
public ChannelFuture connect()
public ChannelFuture connect(ChannelFuture future)
public void shutdown()
Copyright © 2008-2012 The Netty Project. All Rights Reserved.