of

fun of(propositionId: String, reason: MarkReason, outcome: CollectorOutcome, strategyName: String, runId: String, at: Instant = Instant.now(), previousStatus: PropositionStatus? = null, newStatus: PropositionStatus? = null, mergedIntoId: String? = null, undoneAt: Instant? = null): CollectorRecord

Java-friendly factory method to create a CollectorRecord.

Parameters

propositionId

ID of the proposition that was acted upon

reason

Typed explanation of why the proposition was marked

outcome

What the collector did to the proposition

strategyName

Name of the collector strategy that produced this record

runId

ID of the collection run

at

When this record was created

previousStatus

The proposition's status before the outcome

newStatus

The proposition's status after the outcome

mergedIntoId

The survivor the sweep merged this proposition into, if it did

undoneAt

When that merge was reversed, or null while it stands