feat(batch3): implement send queue feature group

This commit is contained in:
Joseph Doherty
2026-02-28 07:31:12 -05:00
parent 6b67c83c0e
commit beab0e60da
7 changed files with 380 additions and 7 deletions

View File

@@ -101,10 +101,25 @@ public sealed class Account : INatsAccount
internal ClientConnection? InternalClient { get; set; }
/// <summary>
/// Send queue stub. Mirrors Go <c>sq *sendq</c>.
/// TODO: session 12 — send-queue implementation.
/// Per-account send queue. Mirrors Go <c>sq *sendq</c>.
/// </summary>
internal object? SendQueue { get; set; }
internal SendQueue? SendQueue { get; set; }
internal SendQueue? GetSendQueue()
{
lock (_sqmu)
{
return SendQueue;
}
}
internal void SetSendQueue(SendQueue? sendQueue)
{
lock (_sqmu)
{
SendQueue = sendQueue;
}
}
// -------------------------------------------------------------------------
// Eventing timers