Package com.onec.messaging
Record Class OutboxEvent
java.lang.Object
java.lang.Record
com.onec.messaging.OutboxEvent
public record OutboxEvent(UUID id, String aggregateType, String aggregateId, String eventType, String payload, LocalDateTime createdAt, LocalDateTime publishedAt, String status)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOutboxEvent(UUID id, String aggregateType, String aggregateId, String eventType, String payload, LocalDateTime createdAt, LocalDateTime publishedAt, String status) Creates an instance of aOutboxEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregateIdrecord component.Returns the value of theaggregateTyperecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventTyperecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.payload()Returns the value of thepayloadrecord component.Returns the value of thepublishedAtrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OutboxEvent
public OutboxEvent(UUID id, String aggregateType, String aggregateId, String eventType, String payload, LocalDateTime createdAt, LocalDateTime publishedAt, String status) Creates an instance of aOutboxEventrecord class.- Parameters:
id- the value for theidrecord componentaggregateType- the value for theaggregateTyperecord componentaggregateId- the value for theaggregateIdrecord componenteventType- the value for theeventTyperecord componentpayload- the value for thepayloadrecord componentcreatedAt- the value for thecreatedAtrecord componentpublishedAt- the value for thepublishedAtrecord componentstatus- the value for thestatusrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
aggregateType
Returns the value of theaggregateTyperecord component.- Returns:
- the value of the
aggregateTyperecord component
-
aggregateId
Returns the value of theaggregateIdrecord component.- Returns:
- the value of the
aggregateIdrecord component
-
eventType
Returns the value of theeventTyperecord component.- Returns:
- the value of the
eventTyperecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
publishedAt
Returns the value of thepublishedAtrecord component.- Returns:
- the value of the
publishedAtrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-