Skip to content

Commit 44f6ab3

Browse files
committed
docs: retry and role object diagrams
1 parent 21fed21 commit 44f6ab3

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

Diff for: retry/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ In plain words
3434

3535
> Enable an application to handle transient failures when it tries to connect to a service or network resource, by transparently retrying a failed operation. This can improve the stability of the application.
3636
37+
Flowchart
38+
39+
![Retry flowchart](./etc/retry-flowchart.png)
40+
3741
## Programmatic Example of Retry Pattern in Java
3842

3943
The Retry design pattern is a resilience pattern that allows an application to transparently attempt to execute operations multiple times in the expectation that it'll succeed. This pattern is particularly useful when the application is connecting to a network service or a remote resource, where temporary failures are common.

Diff for: retry/etc/retry-flowchart.png

79.9 KB
Loading

Diff for: role-object/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ wiki.c2.com says
3232

3333
> Adapt an object to different client’s needs through transparently attached role objects, each one representing a role the object has to play in that client’s context. The object manages its role set dynamically. By representing roles as individual objects, different contexts are kept separate and system configuration is simplified.
3434
35+
Sequence diagram
36+
37+
![Role Object sequence diagram](./etc/role-object-sequence-diagram.png)
38+
3539
## Programmatic Example of Role Object Pattern in Java
3640

3741
The Role Object design pattern is a pattern that suggests modeling context-specific views of an object as separate role objects. These role objects are dynamically attached to and removed from the core object. The resulting composite object structure, consisting of the core and its role objects, is called a subject. A subject often plays several roles and the same role is likely to be played by different subjects.

Diff for: role-object/etc/role-object-sequence-diagram.png

46.1 KB
Loading

0 commit comments

Comments
 (0)