{
HostAndPort address = HostAndPort.fromParts("localhost", serverPort);
ThriftClientConfig config = new ThriftClientConfig().setConnectTimeout(new Duration(1, TimeUnit.SECONDS))
.setReadTimeout(new Duration(1, TimeUnit.SECONDS))
.setWriteTimeout(new Duration(1, TimeUnit.SECONDS));
FramedClientConnector connector = new FramedClientConnector(address) {
@Override
public FramedClientChannel newThriftClientChannel(
Channel nettyChannel, Timer timer)
{
if (connectDelay.toMillis() > 0) {