Skip to content

Commit

Permalink
Add docs for message durability (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
Havret authored Jun 19, 2024
1 parent 292805a commit 74b0196
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ArtemisNetCoreClient/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ public class Message

public byte Type { get; set; }

/// <summary>
/// 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.
/// </summary>
public bool Durable { get; set; }

/// <summary>
Expand Down
5 changes: 5 additions & 0 deletions src/ArtemisNetCoreClient/ReceivedMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ public class ReceivedMessage

public required byte Type { get; init; }

/// <summary>
/// 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.
/// </summary>
public required bool Durable { get; init; }

/// <summary>
Expand Down

0 comments on commit 74b0196

Please sign in to comment.