Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions documentation/modules/ROOT/pages/09_fault-tolerance.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public interface SwapiService {
@Path("/films/")
@Produces(MediaType.APPLICATION_JSON)
@Retry(maxRetries = 3, delay = 2000)
Swapi getMovieByTitle(@QueryParam("search") String title);
public Swapi getFilmById(@PathParam("id") String id);
}
----

Expand Down Expand Up @@ -139,7 +139,7 @@ public interface SwapiService {
@Produces(MediaType.APPLICATION_JSON)
@Retry(maxRetries = 3, delay = 2000)
@Fallback(SwapiFallback.class)
Swapi getMovieByTitle(@QueryParam("search") String title);
public Swapi getFilmById(@PathParam("id") String id);

public static class SwapiFallback implements FallbackHandler<Swapi> {

Expand Down Expand Up @@ -220,7 +220,7 @@ public interface SwapiService {
failureRatio=0.75,
delay=5000
)
Swapi getMovieByTitle(@QueryParam("search") String title);
public Swapi getFilmById(@PathParam("id") String id);

}

Expand Down