Package app.ductape.sdk.brokers.types
Record Class BrokerTypes.BrokerMessage
java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.BrokerMessage
- Enclosing class:
- BrokerTypes
public static record BrokerTypes.BrokerMessage(String id, String messageId, String idempotencyKey, String workspaceId, String productId, String productTag, String env, String brokerTag, String topicTag, String event, String producerTag, String messageEncrypted, Map<String,Object> messageDecrypted, BrokerTypes.BrokerMessageStatus status, Date producedAt, List<BrokerTypes.BrokerMessageConsumerDelivery> consumerDeliveries, String processId, String sessionTag, Map<String,Object> metadata, Date createdAt, Date updatedAt)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBrokerMessage(String id, String messageId, String idempotencyKey, String workspaceId, String productId, String productTag, String env, String brokerTag, String topicTag, String event, String producerTag, String messageEncrypted, Map<String, Object> messageDecrypted, BrokerTypes.BrokerMessageStatus status, Date producedAt, List<BrokerTypes.BrokerMessageConsumerDelivery> consumerDeliveries, String processId, String sessionTag, Map<String, Object> metadata, Date createdAt, Date updatedAt) Creates an instance of aBrokerMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebrokerTagrecord component.Returns the value of theconsumerDeliveriesrecord component.Returns the value of thecreatedAtrecord component.env()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theidempotencyKeyrecord component.Returns the value of themessageDecryptedrecord component.Returns the value of themessageEncryptedrecord component.Returns the value of themessageIdrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of theprocessIdrecord component.Returns the value of theproducedAtrecord component.Returns the value of theproducerTagrecord component.Returns the value of theproductIdrecord component.Returns the value of theproductTagrecord component.Returns the value of thesessionTagrecord component.status()Returns the value of thestatusrecord component.topicTag()Returns the value of thetopicTagrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.Returns the value of theworkspaceIdrecord component.
-
Constructor Details
-
BrokerMessage
public BrokerMessage(String id, String messageId, String idempotencyKey, String workspaceId, String productId, String productTag, String env, String brokerTag, String topicTag, String event, String producerTag, String messageEncrypted, Map<String, Object> messageDecrypted, BrokerTypes.BrokerMessageStatus status, Date producedAt, List<BrokerTypes.BrokerMessageConsumerDelivery> consumerDeliveries, String processId, String sessionTag, Map<String, Object> metadata, Date createdAt, Date updatedAt) Creates an instance of aBrokerMessagerecord class.- Parameters:
id- the value for theidrecord componentmessageId- the value for themessageIdrecord componentidempotencyKey- the value for theidempotencyKeyrecord componentworkspaceId- the value for theworkspaceIdrecord componentproductId- the value for theproductIdrecord componentproductTag- the value for theproductTagrecord componentenv- the value for theenvrecord componentbrokerTag- the value for thebrokerTagrecord componenttopicTag- the value for thetopicTagrecord componentevent- the value for theeventrecord componentproducerTag- the value for theproducerTagrecord componentmessageEncrypted- the value for themessageEncryptedrecord componentmessageDecrypted- the value for themessageDecryptedrecord componentstatus- the value for thestatusrecord componentproducedAt- the value for theproducedAtrecord componentconsumerDeliveries- the value for theconsumerDeliveriesrecord componentprocessId- the value for theprocessIdrecord componentsessionTag- the value for thesessionTagrecord componentmetadata- the value for themetadatarecord componentcreatedAt- the value for thecreatedAtrecord componentupdatedAt- the value for theupdatedAtrecord 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
-
messageId
Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
idempotencyKey
Returns the value of theidempotencyKeyrecord component.- Returns:
- the value of the
idempotencyKeyrecord component
-
workspaceId
Returns the value of theworkspaceIdrecord component.- Returns:
- the value of the
workspaceIdrecord component
-
productId
Returns the value of theproductIdrecord component.- Returns:
- the value of the
productIdrecord component
-
productTag
Returns the value of theproductTagrecord component.- Returns:
- the value of the
productTagrecord component
-
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-
brokerTag
Returns the value of thebrokerTagrecord component.- Returns:
- the value of the
brokerTagrecord component
-
topicTag
Returns the value of thetopicTagrecord component.- Returns:
- the value of the
topicTagrecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
producerTag
Returns the value of theproducerTagrecord component.- Returns:
- the value of the
producerTagrecord component
-
messageEncrypted
Returns the value of themessageEncryptedrecord component.- Returns:
- the value of the
messageEncryptedrecord component
-
messageDecrypted
Returns the value of themessageDecryptedrecord component.- Returns:
- the value of the
messageDecryptedrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
producedAt
Returns the value of theproducedAtrecord component.- Returns:
- the value of the
producedAtrecord component
-
consumerDeliveries
Returns the value of theconsumerDeliveriesrecord component.- Returns:
- the value of the
consumerDeliveriesrecord component
-
processId
Returns the value of theprocessIdrecord component.- Returns:
- the value of the
processIdrecord component
-
sessionTag
Returns the value of thesessionTagrecord component.- Returns:
- the value of the
sessionTagrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-