using NATS.Server;
using NATS.Server.Imports;

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
    public INatsClient? Client { get; set; }
    public ServiceImport? ServiceImport { get; set; }
    public StreamImport? StreamImport { get; set; }
}
