feat: add Subscription types and subject validation with wildcard matching
This commit is contained in:
10
src/NATS.Server/Subscriptions/Subscription.cs
Normal file
10
src/NATS.Server/Subscriptions/Subscription.cs
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user