Как обрабатывать настройки прокси-сервера на уровне потока вместо уровня JVM в java
Currently in our application we implemented system level proxy i.e.nothing but JVM level proxy. Because of this in production some latency timeouts is happening. And also in production they changed some configuration settings now they are asking for permanent fix at code level. Can any one please suggest me how to implement the proxy thread level instead of JVM level. The following code we have implemented in the current project. System.setProperty("http.proxyHost", proxyHost); System.setProperty("http.proxyPort", proxyPort); Is there any way to implement thread level proxy?If yes please suggest me code level implementation.
Что я уже пробовал:
Я пробовал в Google thread level, но не смог найти никакого решения для этого.
Пожалуйста, помогите мне в этом .