Java Code Examples for

The following are Jave code examples for showing how to use closeFuture() of the class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: DovakinMQ   File:   Source Code and License Vote up 6 votes
public void start(){
    ServerBootstrap bootstrap = new ServerBootstrap();,bossGroup)
            .childHandler(new TCPHandlerInitializer(this))
            .option(ChannelOption.SO_BACKLOG, 512)
            .childOption(ChannelOption.SO_KEEPALIVE, true);
    Channel serverChannel = bootstrap.bind(new InetSocketAddress(port)).channel();
    ChannelFuture future = serverChannel.closeFuture();
    try {
    } catch (InterruptedException e) {