Package app.ductape.sdk.brokers.types
Record Class BrokerTypes.BrokerEventMetadata
java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.BrokerEventMetadata
- Enclosing class:
- BrokerTypes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconsumerIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidempotencyKeyrecord component.Returns the value of themessageIdrecord component.offset()Returns the value of theoffsetrecord component.Returns the value of thepartitionrecord component.Returns the value of theproducerIdrecord component.Returns the value of theretryCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BrokerEventMetadata
public BrokerEventMetadata(String consumerId, String producerId, String errorMessage, Integer retryCount, String messageId, String idempotencyKey, Integer partition, Long offset) Creates an instance of aBrokerEventMetadatarecord class.- Parameters:
consumerId- the value for theconsumerIdrecord componentproducerId- the value for theproducerIdrecord componenterrorMessage- the value for theerrorMessagerecord componentretryCount- the value for theretryCountrecord componentmessageId- the value for themessageIdrecord componentidempotencyKey- the value for theidempotencyKeyrecord componentpartition- the value for thepartitionrecord componentoffset- the value for theoffsetrecord 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). -
consumerId
Returns the value of theconsumerIdrecord component.- Returns:
- the value of the
consumerIdrecord component
-
producerId
Returns the value of theproducerIdrecord component.- Returns:
- the value of the
producerIdrecord component
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-
retryCount
Returns the value of theretryCountrecord component.- Returns:
- the value of the
retryCountrecord 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
-
partition
Returns the value of thepartitionrecord component.- Returns:
- the value of the
partitionrecord component
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-