Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

丁松杰 / Pole

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • Pole
  • src
  • Pole.Sagas.Server
  • PoleSagasServerOption.cs
Find file
BlameHistoryPermalink
  • dingsongjie's avatar
    重构 eventbus 的 代码结构 · 5511b5b8
    dingsongjie committed 5 years ago
    5511b5b8
PoleSagasServerOption.cs 1.18 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
using System;
using System.Collections.Generic;
using System.Text;

namespace Pole.Sagas.Server
{
    public class PoleSagasServerOption
    {
        /// <summary>
        /// 从数据库获取未结束的 sagas 的 时间间隔 单位秒
        /// </summary>
        public int NotEndedSagasFetchIntervalSeconds { get; set; } = 30;
        /// <summary>
        /// 每个Grpc 获取Sagas 的请求 ,服务端流式返回,每一次返回的间隔时间 单位秒
        /// </summary>
        public int GetSagasGrpcStreamingResponseDelaySeconds { get; set; } = 20;
        /// <summary>
        /// 过期数据 批量删除触发的时间间隔,单位秒
        /// </summary>
        public int ExpiredDataBulkDeleteIntervalSeconds { get; set; } = 10*60;
        /// <summary>
        /// 过期数据 批量是每一次删除的数量
        /// </summary>
        public int ExpiredDataDeleteBatchCount { get; set; } = 1000;
        /// <summary>
        /// 批量删除时 实际过期的数量比预定数量要大时,会分多次删除,此值为其中每次分批删除的时间间隔
        /// </summary>
        public int ExpiredDataPreBulkDeleteDelaySeconds { get; set; } = 3;
    }
}