Skip to content

Instantly share code, notes, and snippets.

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());
}
}