[JAVA][FEIGN] Removing hardcoded HTTP Client which is causing performance issues (#21085)

* [JAVA][FEIGN] Removing hardcoded HTTP Client

Fixing performance issues

* Updating samples for Java Feign performance betterment changes

* added APIClient.java for feign-hc5
This commit is contained in:
Sri Sushma Karra
2025-04-17 17:13:07 +08:00
committed by GitHub
parent 5e446b4147
commit f9f5af5ed9
4 changed files with 0 additions and 18 deletions

View File

@@ -19,7 +19,6 @@ import java.util.function.Supplier;
import java.util.logging.Level;
import java.util.logging.Logger;
import feign.okhttp.OkHttpClient;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
@@ -60,7 +59,6 @@ public class ApiClient {
apiAuthorizations = new LinkedHashMap<String, RequestInterceptor>();
objectMapper = createObjectMapper();
feignBuilder = Feign.builder()
.client(new OkHttpClient())
.encoder(new FormEncoder(new JacksonEncoder(objectMapper)))
.decoder(new ApiResponseDecoder(objectMapper))
.errorDecoder(new ApiErrorDecoder())