public FeedEstimatorRunner( ChangesEstimationHandler dispatchEstimation, ChangeFeedEstimator remainingWorkEstimator, ChangeFeedProcessorHealthMonitor healthMonitor, TimeSpan?estimationPeriod = null) { this.dispatchEstimation = dispatchEstimation; this.remainingWorkEstimator = remainingWorkEstimator; this.healthMonitor = healthMonitor; this.monitoringDelay = estimationPeriod ?? FeedEstimatorRunner.defaultMonitoringDelay; }
public PartitionControllerCore( DocumentServiceLeaseContainer leaseContainer, DocumentServiceLeaseManager leaseManager, PartitionSupervisorFactory partitionSupervisorFactory, PartitionSynchronizer synchronizer, ChangeFeedProcessorHealthMonitor monitor) { this.leaseContainer = leaseContainer; this.leaseManager = leaseManager; this.partitionSupervisorFactory = partitionSupervisorFactory; this.synchronizer = synchronizer; this.monitor = monitor; }
public void ApplyBuildConfiguration( DocumentServiceLeaseStoreManager customDocumentServiceLeaseStoreManager, ContainerInternal leaseContainer, string instanceName, ChangeFeedLeaseOptions changeFeedLeaseOptions, ChangeFeedProcessorOptions changeFeedProcessorOptions, ContainerInternal monitoredContainer) { if (leaseContainer == null && customDocumentServiceLeaseStoreManager == null) { throw new ArgumentNullException(nameof(leaseContainer)); } this.leaseContainer = leaseContainer; this.monitoredContainer = monitoredContainer ?? throw new ArgumentNullException(nameof(monitoredContainer)); this.changeFeedLeaseOptions = changeFeedLeaseOptions; this.documentServiceLeaseContainer = customDocumentServiceLeaseStoreManager?.LeaseContainer; this.healthMonitor = changeFeedProcessorOptions.HealthMonitor; }