Package app.ductape.sdk.brokers.types
Record Class BrokerTypes.BrokerMessageConsumerDelivery
java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.BrokerMessageConsumerDelivery
- Enclosing class:
- BrokerTypes
-
Constructor Summary
ConstructorsConstructorDescriptionBrokerMessageConsumerDelivery(String consumerTag, BrokerTypes.BrokerMessageStatus status, Date consumedAt, String error, Integer retryCount, String responseData) Creates an instance of aBrokerMessageConsumerDeliveryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconsumedAtrecord component.Returns the value of theconsumerTagrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theresponseDatarecord component.Returns the value of theretryCountrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BrokerMessageConsumerDelivery
public BrokerMessageConsumerDelivery(String consumerTag, BrokerTypes.BrokerMessageStatus status, Date consumedAt, String error, Integer retryCount, String responseData) Creates an instance of aBrokerMessageConsumerDeliveryrecord class.- Parameters:
consumerTag- the value for theconsumerTagrecord componentstatus- the value for thestatusrecord componentconsumedAt- the value for theconsumedAtrecord componenterror- the value for theerrorrecord componentretryCount- the value for theretryCountrecord componentresponseData- the value for theresponseDatarecord 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). -
consumerTag
Returns the value of theconsumerTagrecord component.- Returns:
- the value of the
consumerTagrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
consumedAt
Returns the value of theconsumedAtrecord component.- Returns:
- the value of the
consumedAtrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
retryCount
Returns the value of theretryCountrecord component.- Returns:
- the value of the
retryCountrecord component
-
responseData
Returns the value of theresponseDatarecord component.- Returns:
- the value of the
responseDatarecord component
-