2020-12-06 10:46:04 +01:00
// Copyright (c) Umbraco.
// See LICENSE for more details.
using System ;
2020-11-10 20:02:09 +01:00
2021-02-18 11:06:02 +01:00
namespace Umbraco.Cms.Core.Configuration.Models
2020-11-10 20:02:09 +01:00
{
2020-12-06 10:46:04 +01:00
/// <summary>
/// Typed configuration options for database server messaging settings.
/// </summary>
2020-11-10 20:02:09 +01:00
public class DatabaseServerMessengerSettings
{
/// <summary>
2020-12-06 10:46:04 +01:00
/// Gets or sets a value for the maximum number of instructions that can be processed at startup; otherwise the server cold-boots (rebuilds its caches).
2020-11-10 20:02:09 +01:00
/// </summary>
public int MaxProcessingInstructionCount { get ; set ; } = 1000 ;
/// <summary>
2020-12-06 10:46:04 +01:00
/// Gets or sets a value for the time to keep instructions in the database; records older than this number will be pruned.
2020-11-10 20:02:09 +01:00
/// </summary>
public TimeSpan TimeToRetainInstructions { get ; set ; } = TimeSpan . FromDays ( 2 ) ;
/// <summary>
2020-12-06 10:46:04 +01:00
/// Gets or sets a value for the time to wait between each sync operations.
2020-11-10 20:02:09 +01:00
/// </summary>
public TimeSpan TimeBetweenSyncOperations { get ; set ; } = TimeSpan . FromSeconds ( 5 ) ;
/// <summary>
2020-12-06 10:46:04 +01:00
/// Gets or sets a value for the time to wait between each prune operations.
2020-11-10 20:02:09 +01:00
/// </summary>
public TimeSpan TimeBetweenPruneOperations { get ; set ; } = TimeSpan . FromMinutes ( 1 ) ;
}
}