Commit 4e4dcc3
Siri Varma Vegiraju
feat: add dead-letter topic support to streaming subscriptions (#1608)
Adds optional deadLetterTopic parameter to the streaming subscribe APIs
on DaprPreviewClient / DaprClientImpl, wiring it through to the
SubscribeTopicEventsRequestInitialAlpha1.dead_letter_topic proto field.
New overloads:
- subscribeToEvents(pubsubName, topic, deadLetterTopic, listener, type)
- subscribeToTopic(pubsubName, topic, deadLetterTopic, type)
- subscribeToTopic(pubsubName, topic, deadLetterTopic, type, metadata)
Existing methods delegate to the new ones with a null deadLetterTopic,
and the field is only set on the request when a non-empty value is
provided. Adds unit tests covering both presence and absence of the
field on the gRPC initial frame.
Fixes: #1608
Signed-off-by: Siri Varma Vegiraju <s_vegiraju@apple.com>1 parent 89708ae commit 4e4dcc3
3 files changed
Lines changed: 342 additions & 5 deletions
File tree
- sdk/src
- main/java/io/dapr/client
- test/java/io/dapr/client
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
494 | 507 | | |
495 | 508 | | |
496 | | - | |
497 | | - | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
498 | 513 | | |
499 | 514 | | |
500 | | - | |
| 515 | + | |
501 | 516 | | |
502 | 517 | | |
503 | 518 | | |
| |||
525 | 540 | | |
526 | 541 | | |
527 | 542 | | |
528 | | - | |
| 543 | + | |
529 | 544 | | |
530 | 545 | | |
531 | 546 | | |
532 | 547 | | |
533 | 548 | | |
534 | 549 | | |
535 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
536 | 572 | | |
537 | 573 | | |
538 | 574 | | |
| |||
542 | 578 | | |
543 | 579 | | |
544 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
545 | 585 | | |
546 | 586 | | |
547 | 587 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
295 | 314 | | |
296 | 315 | | |
297 | 316 | | |
| |||
352 | 371 | | |
353 | 372 | | |
354 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
355 | 404 | | |
356 | 405 | | |
357 | 406 | | |
| |||
0 commit comments