Package io.namastack.outbox
Class OutboxRecord
-
- All Implemented Interfaces:
public final class OutboxRecordRepresents an outbox record for implementing the transactional outbox pattern.
An outbox record stores event information that needs to be published reliably after a database transaction has been committed. This ensures that domain events are not lost even if the message publishing fails.
- Since:
0.1.0
Roland Beisel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOutboxRecord.BuilderBuilder class for creating new OutboxRecord instances.
public classOutboxRecord.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final StringaggregateIdprivate final StringeventTypeprivate final Stringpayloadprivate final OffsetDateTimecreatedAtprivate final Integerpartitionprivate final OutboxRecordStatusstatusprivate final OffsetDateTimecompletedAtprivate final IntegerretryCountprivate final OffsetDateTimenextRetryAtpublic final static OutboxRecord.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final StringgetId()final StringgetAggregateId()final StringgetEventType()final StringgetPayload()final OffsetDateTimegetCreatedAt()final IntegergetPartition()final OutboxRecordStatusgetStatus()final OffsetDateTimegetCompletedAt()final IntegergetRetryCount()final OffsetDateTimegetNextRetryAt()-
-
Method Detail
-
getAggregateId
final String getAggregateId()
-
getEventType
final String getEventType()
-
getPayload
final String getPayload()
-
getCreatedAt
final OffsetDateTime getCreatedAt()
-
getPartition
final Integer getPartition()
-
getStatus
final OutboxRecordStatus getStatus()
-
getCompletedAt
final OffsetDateTime getCompletedAt()
-
getRetryCount
final Integer getRetryCount()
-
getNextRetryAt
final OffsetDateTime getNextRetryAt()
-
-
-
-