Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.34 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.34 KB

GitHub tag (latest SemVer) Build Status GitHub commit activity Project Status: Active – The project has reached a stable, usable state and is being actively developed. Known Vulnerabilities

Resilience4j-BaseCommands

Basic Commands for HTTP using CircuitBreaker with Resilience4j

  • BaseHttpGetResilience4jCommand
  • BaseHttpPostResilience4jCommand
  • BaseHttpPutResilience4jCommand
  • BaseHttpDeleteResilience4jCommand
  • BaseResilience4jCommand

Usage

CommandProxy commandProxy = new CommandProxy();
URI baseUri = URI.create("https://example.com/");
BaseResilience4jCommand command = new BaseHttpGetResilience4jCommand(baseUri, "name-of-similar-commands");
HttpResponse<String> response = commandProxy.run(command);
int status = response.statusCode();
String body = response.body();