feat(batch7): implement f2 reload orchestration and apply path

This commit is contained in:
Joseph Doherty
2026-02-28 11:08:19 -05:00
parent 3908ecdcb1
commit 812088f7c4
3 changed files with 1373 additions and 0 deletions

View File

@@ -498,6 +498,12 @@ internal sealed class ClusterReloadOption : AuthReloadOption
public override bool IsClusterPoolSizeOrAccountsChange()
=> _poolSizeChanged || _accsAdded.Length > 0 || _accsRemoved.Length > 0;
internal ClusterOpts? ClusterValue => _newValue as ClusterOpts;
internal bool PoolSizeChanged => _poolSizeChanged;
internal bool CompressChanged => _compressChanged;
internal IReadOnlyList<string> AccountsAdded => _accsAdded;
internal IReadOnlyList<string> AccountsRemoved => _accsRemoved;
/// <summary>
/// Computes pool/account deltas used by reload orchestration.
/// Mirrors Go <c>clusterOption.diffPoolAndAccounts</c>.
@@ -715,6 +721,8 @@ internal sealed class JetStreamReloadOption : NoopReloadOption
private readonly bool _newValue;
public JetStreamReloadOption(bool newValue) => _newValue = newValue;
internal bool Value => _newValue;
public override bool IsJetStreamChange() => true;
public override bool IsStatszChange() => true;

File diff suppressed because it is too large Load Diff

Binary file not shown.