PatchedMessage
faststream.nats.testing.PatchedMessage #
PatchedMessage(
_client,
subject="",
reply="",
data=b"",
headers=None,
_metadata=None,
_ackd=False,
_sid=None,
)
Bases: Msg
Ack #
Metadata dataclass
#
Metadata is the metadata from a JetStream message.
- num_pending is the number of available messages in the Stream that have not been consumed yet.
- num_delivered is the number of times that this message has been delivered. For example, num_delivered higher than one means that there have been redeliveries.
- timestamp is the time at which the message was delivered.
- stream is the name of the stream.
- consumer is the name of the consumer.
respond async
#
respond replies to the inbox of the message if there is one.