Author
Is there any pros/cons of initializing an Apache HTTPClient variable during @activate vs initializing the same variable when I'm about to use it?
private CloseableHttpClient httpClient;
@Activate
protected void activate() {
httpClient = HttpClientBuilder.create()
.setDefaultRequestConfig(requestConfig)
.build();
}
Viewing 0 reply threads
Author
Viewing 0 reply threads
- You must be logged in to reply to this topic.

