Commit e8a7be9
authored
Align the SimplestCase single host sample with the multi host example. (#235)
- make the "from the start" position argument conform to the contract (AeronArchive.NULL_POSITION)
- wait for the counter to become available instead of assuming that it is immediately available ( as it sometimes resulted in error when attempted to read too early).
- fix shut down behaviour by attempting to close the resources even if the exception occurred. It used to hang forever by not executing close logic on exception.1 parent 20746d5 commit e8a7be9
File tree
1 file changed
+19
-8
lines changed- archive-core/src/main/java/com/aeroncookbook/archive
1 file changed
+19
-8
lines changedLines changed: 19 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| |||
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
88 | | - | |
| 94 | + | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
| |||
128 | 134 | | |
129 | 135 | | |
130 | 136 | | |
131 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
132 | 143 | | |
133 | 144 | | |
134 | 145 | | |
| |||
0 commit comments