Package app.ductape.sdk.brokers.types
Record Class BrokerTypes.BrokerDeadLetter
java.lang.Object
java.lang.Record
app.ductape.sdk.brokers.types.BrokerTypes.BrokerDeadLetter
- Enclosing class:
- BrokerTypes
-
Constructor Summary
ConstructorsConstructorDescriptionBrokerDeadLetter(String messageId, BrokerTypes.BrokerMessage originalMessage, String error, Date failedAt, int retryCount, String consumerTag, boolean canRetry) Creates an instance of aBrokerDeadLetterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRetry()Returns the value of thecanRetryrecord 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.failedAt()Returns the value of thefailedAtrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themessageIdrecord component.Returns the value of theoriginalMessagerecord component.intReturns the value of theretryCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BrokerDeadLetter
public BrokerDeadLetter(String messageId, BrokerTypes.BrokerMessage originalMessage, String error, Date failedAt, int retryCount, String consumerTag, boolean canRetry) Creates an instance of aBrokerDeadLetterrecord class.- Parameters:
messageId- the value for themessageIdrecord componentoriginalMessage- the value for theoriginalMessagerecord componenterror- the value for theerrorrecord componentfailedAt- the value for thefailedAtrecord componentretryCount- the value for theretryCountrecord componentconsumerTag- the value for theconsumerTagrecord componentcanRetry- the value for thecanRetryrecord 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 '=='. -
messageId
Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
originalMessage
Returns the value of theoriginalMessagerecord component.- Returns:
- the value of the
originalMessagerecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
failedAt
Returns the value of thefailedAtrecord component.- Returns:
- the value of the
failedAtrecord component
-
retryCount
public int retryCount()Returns the value of theretryCountrecord component.- Returns:
- the value of the
retryCountrecord component
-
consumerTag
Returns the value of theconsumerTagrecord component.- Returns:
- the value of the
consumerTagrecord component
-
canRetry
public boolean canRetry()Returns the value of thecanRetryrecord component.- Returns:
- the value of the
canRetryrecord component
-