In jersey 1 we had a function setConnectTimeout in the class com.sun.jersey.api.client.Client
.
In jersey 2 the javax.ws.rs.client.Client
class is used where this function is missing.
How to set connection timeout and read timeout in jersey 2.x?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…