Package app.ductape.sdk.brokers.types
Record Class BrokerTypes.BrokerEvent
java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.BrokerEvent
- Enclosing class:
- BrokerTypes
public static record BrokerTypes.BrokerEvent(String id, String eventType, BrokerTypes.BrokerEventCategory category, String topic, String brokerTag, String message, Date timestamp, BrokerTypes.BrokerEventStatus status, boolean idempotent, Map<String,Object> requestData, Map<String,Object> responseData, BrokerTypes.BrokerEventMetadata metadata, String productTag, String env, String processId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBrokerEvent(String id, String eventType, BrokerTypes.BrokerEventCategory category, String topic, String brokerTag, String message, Date timestamp, BrokerTypes.BrokerEventStatus status, boolean idempotent, Map<String, Object> requestData, Map<String, Object> responseData, BrokerTypes.BrokerEventMetadata metadata, String productTag, String env, String processId) Creates an instance of aBrokerEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebrokerTagrecord component.category()Returns the value of thecategoryrecord component.env()Returns the value of theenvrecord 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.booleanReturns the value of theidempotentrecord component.message()Returns the value of themessagerecord component.metadata()Returns the value of themetadatarecord component.Returns the value of theprocessIdrecord component.Returns the value of theproductTagrecord component.Returns the value of therequestDatarecord component.Returns the value of theresponseDatarecord component.status()Returns the value of thestatusrecord component.Returns the value of thetimestamprecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BrokerEvent
public BrokerEvent(String id, String eventType, BrokerTypes.BrokerEventCategory category, String topic, String brokerTag, String message, Date timestamp, BrokerTypes.BrokerEventStatus status, boolean idempotent, Map<String, Object> requestData, Map<String, Object> responseData, BrokerTypes.BrokerEventMetadata metadata, String productTag, String env, String processId) Creates an instance of aBrokerEventrecord class.- Parameters:
id- the value for theidrecord componenteventType- the value for theeventTyperecord componentcategory- the value for thecategoryrecord componenttopic- the value for thetopicrecord componentbrokerTag- the value for thebrokerTagrecord componentmessage- the value for themessagerecord componenttimestamp- the value for thetimestamprecord componentstatus- the value for thestatusrecord componentidempotent- the value for theidempotentrecord componentrequestData- the value for therequestDatarecord componentresponseData- the value for theresponseDatarecord componentmetadata- the value for themetadatarecord componentproductTag- the value for theproductTagrecord componentenv- the value for theenvrecord componentprocessId- the value for theprocessIdrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
eventType
Returns the value of theeventTyperecord component.- Returns:
- the value of the
eventTyperecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
topic
Returns the value of thetopicrecord component.- Returns:
- the value of the
topicrecord component
-
brokerTag
Returns the value of thebrokerTagrecord component.- Returns:
- the value of the
brokerTagrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
idempotent
public boolean idempotent()Returns the value of theidempotentrecord component.- Returns:
- the value of the
idempotentrecord component
-
requestData
Returns the value of therequestDatarecord component.- Returns:
- the value of the
requestDatarecord component
-
responseData
Returns the value of theresponseDatarecord component.- Returns:
- the value of the
responseDatarecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord 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
-
processId
Returns the value of theprocessIdrecord component.- Returns:
- the value of the
processIdrecord component
-