Class ContentObjectReclamationScheduleSource
- Namespace
- MailFathom.Application.EmailContent.Storage.Reclamation
- Assembly
- MailFathom.Application.dll
Declares the one recurring sweep a deployment storing mail in a bucket runs.
public sealed class ContentObjectReclamationScheduleSource : IScheduledJobSource
- Inheritance
-
ContentObjectReclamationScheduleSource
- Implements
- Inherited Members
Remarks
One schedule for the whole deployment rather than one per account, because what it sweeps is one bucket under one prefix and an object gives no account away — a key is minted by the write that produced it and names nothing about the message it holds. Splitting it per account would mean listing the same bucket once per mailbox to find the objects of one.
It is registered only where the deployment named an endpoint, so a deployment storing content in the database declares no schedule and dispatches nothing. The interval it declares is a privacy-relevant setting rather than housekeeping: it is the bound on how long mail whose record is already gone can still exist as bytes.
Constructors
- ContentObjectReclamationScheduleSource(JobRecurrence)
Initializes the source over the interval the deployment configured.
Methods
- ReadSchedulesAsync(CancellationToken)
Reads the schedules this source declares as they stand now.