public Client buildClient() { ClientBuilder cb = getClientBuilder(params.getConf()); for (Class<?> aClass : params.getRequestFilters()) { cb.register(aClass); } Client client = cb.build(); //Set Timeouts LensClientConfig config = params.getConf(); client.property(ClientProperties.CONNECT_TIMEOUT, config.getInt(CONNECTION_TIMEOUT_MILLIS, DEFAULT_CONNECTION_TIMEOUT_MILLIS)); client.property(ClientProperties.READ_TIMEOUT, config.getInt(READ_TIMEOUT_MILLIS, DEFAULT_READ_TIMEOUT_MILLIS)); return client; }