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
Some checks failed
CI / verify (push) Has been cancelled
This commit is contained in:
21
src/ZB.MOM.WW.CBDDC.Network/IOplogPruneCutoffCalculator.cs
Normal file
21
src/ZB.MOM.WW.CBDDC.Network/IOplogPruneCutoffCalculator.cs
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user