// cf.await();
// wait interruptibly with a timeout of 2000 ms.
// cf.await(2000, TimeUnit.MILLISECONDS);
// wait uninterruptibly
clog("Waiting for Channel Connect...");
cf.awaitUninterruptibly();
// wait uninterruptibly with a timeout of 2000 ms.
// cf.awaitUninterruptibly(2000, TimeUnit.MILLISECONDS);
// add a ChannelFutureListener that writes the Date when the connect is complete
// cf.addListener(new ChannelFutureListener(){
// public void operationComplete(ChannelFuture future) throws Exception {