Commit 6a43586
committed
Introduce RqueueSerDes and RqueueTypeFactory as universal serialization abstractions
Replace all direct ObjectMapper usages with RqueueSerDes and RqueueTypeFactory:
- GenericMessageConverter.SmartMessageSerDes now takes RqueueSerDes + RqueueTypeFactory;
getTargetType returns TypeEnvelop instead of Jackson-specific JavaType
- JsonMessageConverter, RqueueWorkerRegistryImpl, HttpUtils, RqueueInternalPubSubChannel
all use RqueueSerDes; SmartMessageSerDes removed from RqueueInternalPubSubChannel
- RqueuePubSubEvent.messageAs signature updated to accept RqueueSerDes
- SerializationUtils exposes static serDes and typeFactory singletons for non-Spring use
- RqueueListenerBaseConfig registers @bean for both with MissingRqueueSerDes /
MissingRqueueTypeFactory conditions so user-provided beans take precedence
- Msg.msg changed from String to byte[] with Utf8BytesSerializer/Deserializer to keep
the same wire format and preserve backward compatibility with stored messages
- backward compatibility test added to GenericMessageConverterTest
Assisted-By: Claude Code1 parent 0e518b5 commit 6a43586
42 files changed
Lines changed: 665 additions & 245 deletions
File tree
- rqueue-core/src
- main/java/com/github/sonus21/rqueue
- config
- converter
- core
- models/event
- serdes
- utils
- condition
- worker
- test/java/com/github/sonus21/rqueue
- converter
- core
- rqueue-nats/src
- main/java/com/github/sonus21/rqueue/nats
- dao
- js
- service
- worker
- test/java/com/github/sonus21/rqueue/nats
- dao
- lock
- service
- rqueue-spring-boot-starter/src
- main/java/com/github/sonus21/rqueue/spring/boot
- test/java/com/github/sonus21/rqueue/spring/boot/tests/integration
- rqueue-spring-common-test/src/main/java/com/github/sonus21/rqueue/test/application
- rqueue-web/src
- main/java/com/github/sonus21/rqueue/web/service/impl
- test/java/com/github/sonus21/rqueue/web/service
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
180 | 185 | | |
181 | 186 | | |
182 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
183 | 200 | | |
184 | 201 | | |
185 | 202 | | |
| |||
Lines changed: 66 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | | - | |
37 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
| |||
47 | 57 | | |
48 | 58 | | |
49 | 59 | | |
50 | | - | |
51 | | - | |
| 60 | + | |
| 61 | + | |
52 | 62 | | |
53 | 63 | | |
54 | | - | |
55 | | - | |
56 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
57 | 68 | | |
58 | 69 | | |
59 | 70 | | |
| |||
117 | 128 | | |
118 | 129 | | |
119 | 130 | | |
120 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
121 | 134 | | |
122 | 135 | | |
123 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
124 | 166 | | |
125 | 167 | | |
126 | | - | |
| 168 | + | |
| 169 | + | |
127 | 170 | | |
128 | | - | |
129 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
130 | 174 | | |
131 | 175 | | |
132 | 176 | | |
| |||
197 | 241 | | |
198 | 242 | | |
199 | 243 | | |
200 | | - | |
| 244 | + | |
201 | 245 | | |
202 | 246 | | |
203 | 247 | | |
204 | | - | |
| 248 | + | |
205 | 249 | | |
206 | 250 | | |
207 | 251 | | |
208 | 252 | | |
209 | 253 | | |
210 | 254 | | |
211 | 255 | | |
212 | | - | |
| 256 | + | |
213 | 257 | | |
214 | 258 | | |
215 | 259 | | |
216 | 260 | | |
217 | 261 | | |
218 | | - | |
219 | | - | |
220 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
221 | 265 | | |
222 | 266 | | |
223 | 267 | | |
| |||
230 | 274 | | |
231 | 275 | | |
232 | 276 | | |
233 | | - | |
| 277 | + | |
234 | 278 | | |
235 | 279 | | |
236 | 280 | | |
| |||
243 | 287 | | |
244 | 288 | | |
245 | 289 | | |
246 | | - | |
| 290 | + | |
247 | 291 | | |
248 | | - | |
249 | | - | |
| 292 | + | |
| 293 | + | |
250 | 294 | | |
251 | 295 | | |
252 | 296 | | |
| |||
Lines changed: 11 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
| 43 | + | |
45 | 44 | | |
46 | 45 | | |
47 | | - | |
| 46 | + | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
64 | | - | |
| 63 | + | |
65 | 64 | | |
66 | 65 | | |
67 | | - | |
| 66 | + | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 76 | + | |
| 77 | + | |
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
69 | 68 | | |
70 | 69 | | |
71 | | - | |
| 70 | + | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
Lines changed: 25 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | | - | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | 66 | | |
68 | | - | |
69 | | - | |
| 67 | + | |
70 | 68 | | |
71 | 69 | | |
72 | 70 | | |
| |||
103 | 101 | | |
104 | 102 | | |
105 | 103 | | |
106 | | - | |
107 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
124 | 129 | | |
125 | 130 | | |
126 | 131 | | |
| |||
0 commit comments