Class StoredContentMoveRun
- Namespace
- MailFathom.Application.EmailContent.Move
- Assembly
- MailFathom.Application.dll
The move of a deployment's stored content into the bucket, and how far the passes carrying it have come.
public sealed record StoredContentMoveRun : IEquatable<StoredContentMoveRun>
- Inheritance
-
StoredContentMoveRun
- Implements
- Inherited Members
Remarks
Durable because it has to survive the process. A mailbox of any size outlives the host that started copying it, so a restart resumes where the last pass committed rather than at the first payload — and an operator who paused the move before a rolling restart must find it paused afterwards rather than running again.
One move per deployment, which the store makes structural rather than checking. The backend is one setting for the whole instance under ADR 0017 § 1, so there is no second scope a second move could cover, and two operators asking together are asking for one thing.
The position is a payload kind and the identity the last pass reached inside it, walked in the order the kinds are declared. A payload that moved leaves the walk's own set, so the position is what carries the walk past the payloads it could not move rather than what makes it terminate.
Every field here is a count, an instant, a state, or MailFathom's own identity for a payload. Nothing derived from a message belongs in a record an operator reads to find out what their instance is doing.
Properties
- CopiedPayloadCount
Gets how many payloads the move copied, verified, and repointed at the bucket.
- FailedPayloadCount
Gets how many payloads the move refused to repoint, each of which is still held in the database.
- IsOutstanding
Gets whether the move still has payloads to reach.
- Kind
Gets the payload kind the walk is currently inside.
- MovedByteCount
Gets how many bytes of raw MIME the copied payloads carried.
- RequestedAt
Gets when the move was asked for.
- ResumeAfter
Gets the payload the last pass reached inside that kind, or null at the start of one.
- State
Gets what the move is doing, which only an operator and the pass that finishes the walk change.