Package io.namastack.springoutbox
Object OutboxRecord.Companion
-
- All Implemented Interfaces:
public class OutboxRecord.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static OutboxRecord.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final OutboxRecordrestore(String id, String aggregateId, String eventType, String payload, OffsetDateTime createdAt, OutboxRecordStatus status, OffsetDateTime completedAt, Integer retryCount, OffsetDateTime nextRetryAt)Restores an OutboxRecord from persisted data. -
-
Method Detail
-
restore
final OutboxRecord restore(String id, String aggregateId, String eventType, String payload, OffsetDateTime createdAt, OutboxRecordStatus status, OffsetDateTime completedAt, Integer retryCount, OffsetDateTime nextRetryAt)
Restores an OutboxRecord from persisted data.
This method is used when loading records from the database.
- Parameters:
id- Unique identifieraggregateId- Aggregate identifiereventType- Event typepayload- Event payloadcreatedAt- Creation timestampstatus- Current statuscompletedAt- Completion timestamp (may be null)retryCount- Number of retriesnextRetryAt- Next retry timestamp- Returns:
Restored OutboxRecord instance
-
-
-
-