feat(batch3): implement send queue feature group
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user