T - Protocol specific response meta data, e.g., HttpClientResponsepublic interface ResponseValidator<T>
void validate(T response) throws UnsuccessfulResponseException, ServerError
response - Protocol specific response object, e.g., HttpClientResponseUnsuccessfulResponseException - throw if server is able to execute the request, but
returns an an unsuccessful response.
For example, HTTP response with 404 status code. This will be treated as a valid
response and will not trigger Hystrix fallbackServerError - throw if the response indicates that there is an server error in executing the request.
For example, HTTP response with 500 status code. This will trigger Hystrix fallback.