class OkHttpConnectStrategy implements ConnectStrategy<OkHttpChannelBuilder> {

  @Override
  public OkHttpChannelBuilder connect(final HostnameAndPort hostnameAndPort) {
    return OkHttpChannelBuilder.forAddress(hostnameAndPort.getHostname(), hostnameAndPort.getPort())
        .keepAliveTime(300L, TimeUnit.SECONDS)
        .keepAliveWithoutCalls(true);
  }

}