Record Class DeadLetterOptions
java.lang.Object
java.lang.Record
org.j7m.middleware.api.messaging.DeadLetterOptions
- Record Components:
enabled- whether dead-letter routing is enabledreasonPrefix- safe prefix for generated dead-letter reasons
- All Implemented Interfaces:
Serializable
public record DeadLetterOptions(boolean enabled, String reasonPrefix)
extends Record
implements Serializable
Dead-letter routing options.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeadLetterOptions(boolean enabled, String reasonPrefix) Creates dead-letter options. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thereasonPrefixrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeadLetterOptions
Creates dead-letter options.- Throws:
IllegalArgumentException- whenreasonPrefixis too long
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
enabled
-
reasonPrefix
Returns the value of thereasonPrefixrecord component.- Returns:
- the value of the
reasonPrefixrecord component
-