Мы можем использовать ClientProperties.CONNECT_TIMEOUT
и ClientProperties.READ_TIMEOUT
свойство.
Пример:
ClientConfig configuration = new ClientConfig();
configuration.property(ClientProperties.CONNECT_TIMEOUT, 1000);
configuration.property(ClientProperties.READ_TIMEOUT, 1000);
Client client = ClientBuilder.newClient(configuration);