Record Class OutboxOptions
java.lang.Object
java.lang.Record
org.j7m.middleware.api.messaging.OutboxOptions
- Record Components:
maxPendingEntries- maximum pending outbox entriesmaxRelayAttempts- maximum relay attempts before marking failed
- All Implemented Interfaces:
Serializable
public record OutboxOptions(int maxPendingEntries, int maxRelayAttempts)
extends Record
implements Serializable
Outbox limits and retry options.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOutboxOptions(int maxPendingEntries, int maxRelayAttempts) Creates outbox options. -
Method Summary
Modifier and TypeMethodDescriptionstatic OutboxOptionsdefaults()Returns default outbox 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 themaxPendingEntriesrecord component.intReturns the value of themaxRelayAttemptsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OutboxOptions
public OutboxOptions(int maxPendingEntries, int maxRelayAttempts) Creates outbox options.- Throws:
IllegalArgumentException- when limits are not positive
-
-
Method Details
-
defaults
Returns default outbox options.- Returns:
- default outbox options
-
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. -
maxPendingEntries
public int maxPendingEntries()Returns the value of themaxPendingEntriesrecord component.- Returns:
- the value of the
maxPendingEntriesrecord component
-
maxRelayAttempts
public int maxRelayAttempts()Returns the value of themaxRelayAttemptsrecord component.- Returns:
- the value of the
maxRelayAttemptsrecord component
-