View gist:12c7ac8fb116fccf19e7c6ebb89be88a
runHystrixCommand(
COMMAND_GROUP,
COMMAND_KEY,
TIMEOUT_IN_MILLIS,
new Callable<Observable<HttpResponse>>() {
@Override
public Observable<HttpResponse> call() throws Exception {
return Observable.just(request.execute().returnResponse());
}
}