Skip to content

Commit

Permalink
Expose deliveryTag from AmqpMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
brizaldi committed Nov 3, 2022
1 parent 9a76e46 commit 036dc41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/client/amqp_message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ abstract class AmqpMessage {
/// exchange (e.g. posted directly to a queue).
String? get routingKey;

/// Get the [deliveryTag] for this message.
int get deliveryTag;

/// Get the [properties] that were included with the message metadata
MessageProperties? get properties;

Expand Down
3 changes: 3 additions & 0 deletions lib/src/client/impl/amqp_message_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class _AmqpMessageImpl implements AmqpMessage {

@override
String get routingKey => (message.message as BasicDeliver).routingKey;

@override
int get deliveryTag => (message.message as BasicDeliver).deliveryTag;

@override
void reply(Object responseMessage,
Expand Down

0 comments on commit 036dc41

Please sign in to comment.