feat: add Subscription types and subject validation with wildcard matching

This commit is contained in:
Joseph Doherty
2026-02-22 19:53:49 -05:00
parent 05b07407a8
commit 270ab27ce3
4 changed files with 198 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
namespace NATS.Server.Subscriptions;
public sealed class Subscription
{
public required string Subject { get; init; }
public string? Queue { get; init; }
public required string Sid { get; init; }
public long MessageCount; // Interlocked
public long MaxMessages; // 0 = unlimited
}