AsyncAPIStreamSubscriber
faststream.redis.subscriber.asyncapi.AsyncAPIStreamSubscriber #
AsyncAPIStreamSubscriber(*, stream, no_ack, no_reply, retry, broker_dependencies, broker_middlewares, title_, description_, include_in_schema)
Bases: StreamSubscriber
, _StreamSubscriberMixin
Source code in faststream/redis/subscriber/usecase.py
setup #
setup(*, connection, logger, producer, graceful_timeout, extra_context, broker_parser, broker_decoder, apply_types, is_validate, _get_dependant, _call_decorators)
Source code in faststream/redis/subscriber/usecase.py
add_prefix #
schema #
Returns the schema of the API operation as a dictionary of channel names and channel objects.
add_middleware #
get_log_context #
start async
#
Source code in faststream/redis/subscriber/usecase.py
602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 |
|
close async
#
consume async
#
Consume a message asynchronously.
Source code in faststream/broker/subscriber/usecase.py
process_message async
#
Execute all message processing stages.
Source code in faststream/broker/subscriber/usecase.py
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 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 |
|
get_one async
#
Source code in faststream/redis/subscriber/usecase.py
add_call #
Source code in faststream/broker/subscriber/usecase.py
get_name #
get_description #
Returns the description of the handler.
get_schema #
Source code in faststream/redis/subscriber/asyncapi.py
get_payloads #
Get the payloads of the handler.