using System; using System.Collections.Generic; namespace Umbraco.Core.Sync { /// /// Provides options to the . /// public class DatabaseServerMessengerOptions { /// /// Initializes a new instance of the with default values. /// public DatabaseServerMessengerOptions() { DaysToRetainInstructions = 2; // 2 days ThrottleSeconds = 5; // 5 second MaxProcessingInstructionCount = 1000; } /// /// The maximum number of instructions that can be processed at startup; otherwise the server cold-boots (rebuilds its caches). /// public int MaxProcessingInstructionCount { get; set; } /// /// A list of callbacks that will be invoked if the lastsynced.txt file does not exist. /// /// /// These callbacks will typically be for eg rebuilding the xml cache file, or examine indexes, based on /// the data in the database to get this particular server node up to date. /// public IEnumerable InitializingCallbacks { get; set; } /// /// The number of days to keep instructions in the database; records older than this number will be pruned. /// public int DaysToRetainInstructions { get; set; } /// /// The number of seconds to wait between each sync operations. /// public int ThrottleSeconds { get; set; } } }