diff --git a/doc/modules/ROOT/pages/index.adoc b/doc/modules/ROOT/pages/index.adoc index eaa79f01..9a047d2e 100644 --- a/doc/modules/ROOT/pages/index.adoc +++ b/doc/modules/ROOT/pages/index.adoc @@ -22,12 +22,12 @@ It also provides a programmatic API to build reusable guards: [source,java] ---- public class MyService { - private static final FaultTolerance guard = FaultTolerance.create() + private static final TypedGuard GUARD = TypedGuard.create(String.class) .withFallback().handler(() -> "fallback").done() // <1> .build(); public String hello() throws Exception { - return guard.call(() -> externalService.hello()); // <2> + return GUARD.call(() -> externalService.hello()); // <2> } } ----