protected void connectionEstablished(Channel connectedChannel){
  channel=connectedChannel;
  connected.set(true);
  connectLatch.countDown();
}

protected void connectionEstablished ( Channel connectedChannel ) { channel = connectedChannel ; connected . set ( true ) ; connectLatch . countDown ( ) ; }
called when the transport has successfully connected and is ready for use .
