Skip to content

Commit

Permalink
Merge pull request #80 from brizaldi/expose-delivery-tag
Browse files Browse the repository at this point in the history
Expose deliveryTag from AmqpMessage
  • Loading branch information
achilleasa authored Nov 3, 2022
2 parents 9a76e46 + aa0259e commit 40f3fc1
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 @@ -24,6 +24,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,
{MessageProperties? properties,
Expand Down

0 comments on commit 40f3fc1

Please sign in to comment.