We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 859f836 commit 4f0f94dCopy full SHA for 4f0f94d
doc/modules/ROOT/pages/index.adoc
@@ -22,12 +22,12 @@ It also provides a programmatic API to build reusable guards:
22
[source,java]
23
----
24
public class MyService {
25
- private static final FaultTolerance<String> guard = FaultTolerance.<String>create()
+ private static final TypedGuard<String> GUARD = TypedGuard.create(String.class)
26
.withFallback().handler(() -> "fallback").done() // <1>
27
.build();
28
29
public String hello() throws Exception {
30
- return guard.call(() -> externalService.hello()); // <2>
+ return GUARD.call(() -> externalService.hello()); // <2>
31
}
32
33
0 commit comments