Record Class InboxOptions
java.lang.Object
java.lang.Record
org.j7m.middleware.api.messaging.InboxOptions
- Record Components:
returnPreviousDecision- whether duplicates return previous result metadatamaxDedupeEntries- maximum retained duplicate identities
- All Implemented Interfaces:
Serializable
public record InboxOptions(boolean returnPreviousDecision, int maxDedupeEntries)
extends Record
implements Serializable
Inbox duplicate-suppression options.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInboxOptions(boolean returnPreviousDecision, int maxDedupeEntries) Creates inbox options. -
Method Summary
Modifier and TypeMethodDescriptionstatic InboxOptionsdefaults()Returns default inbox options.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxDedupeEntriesrecord component.booleanReturns the value of thereturnPreviousDecisionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InboxOptions
public InboxOptions(boolean returnPreviousDecision, int maxDedupeEntries) Creates inbox options.- Throws:
IllegalArgumentException- whenmaxDedupeEntriesis not positive
-
-
Method Details
-
defaults
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
returnPreviousDecision
public boolean returnPreviousDecision()Returns the value of thereturnPreviousDecisionrecord component.- Returns:
- the value of the
returnPreviousDecisionrecord component
-
maxDedupeEntries
public int maxDedupeEntries()Returns the value of themaxDedupeEntriesrecord component.- Returns:
- the value of the
maxDedupeEntriesrecord component
-