Initial import of the CBDDC codebase with docs and tests. Add a .NET-focused gitignore to keep generated artifacts out of source control.
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
Joseph Doherty
2026-02-20 13:03:21 -05:00
commit 08bfc17218
218 changed files with 33910 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using System.Threading;
using System.Threading.Tasks;
using ZB.MOM.WW.CBDDC.Core.Network;
namespace ZB.MOM.WW.CBDDC.Network;
/// <summary>
/// Calculates the effective oplog prune cutoff for maintenance.
/// </summary>
public interface IOplogPruneCutoffCalculator
{
/// <summary>
/// Calculates the effective prune cutoff for the provided node configuration.
/// </summary>
/// <param name="configuration">The local node configuration.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>A prune cutoff decision describing whether prune is allowed and at which cutoff.</returns>
Task<OplogPruneCutoffDecision> CalculateEffectiveCutoffAsync(
PeerNodeConfiguration configuration,
CancellationToken cancellationToken = default);
}