From 74b0196a25e687be50db9b6fd344109558c83882 Mon Sep 17 00:00:00 2001 From: Krzysztof Porebski Date: Wed, 19 Jun 2024 23:25:26 +0200 Subject: [PATCH] Add docs for message durability (#135) --- src/ArtemisNetCoreClient/Message.cs | 5 +++++ src/ArtemisNetCoreClient/ReceivedMessage.cs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/ArtemisNetCoreClient/Message.cs b/src/ArtemisNetCoreClient/Message.cs index a1083c7..6e57227 100644 --- a/src/ArtemisNetCoreClient/Message.cs +++ b/src/ArtemisNetCoreClient/Message.cs @@ -14,6 +14,11 @@ public class Message public byte Type { get; set; } + /// + /// Gets or sets a value indicating whether the message is durable or not. + /// Durable messages are persisted in permanent storage and will survive server failure or restart. + /// Non-durable messages will not survive server failure or restart. + /// public bool Durable { get; set; } /// diff --git a/src/ArtemisNetCoreClient/ReceivedMessage.cs b/src/ArtemisNetCoreClient/ReceivedMessage.cs index d8e7d95..7d85311 100644 --- a/src/ArtemisNetCoreClient/ReceivedMessage.cs +++ b/src/ArtemisNetCoreClient/ReceivedMessage.cs @@ -14,6 +14,11 @@ public class ReceivedMessage public required byte Type { get; init; } + /// + /// Gets a value indicating whether the message is durable or not. + /// Durable messages are persisted in permanent storage and will survive server failure or restart. + /// Non-durable messages will not survive server failure or restart. + /// public required bool Durable { get; init; } ///