Package io.namastack.outbox
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, Integer partition, 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, Integer partition, 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 timestampretryCount- Number of retriespartition- Partition for this recordnextRetryAt- Next retry timestamp- Returns:
Restored OutboxRecord instance
-
-
-
-