Record Class QueueOptions
java.lang.Object
java.lang.Record
org.j7m.middleware.api.messaging.QueueOptions
- Record Components:
partitions- number of queue partitionsmaxQueuedMessages- maximum live queued messagesmaxPayloadBytes- maximum payload bytesmaxLeaseBatchSize- maximum lease batch sizemaxActiveLeases- maximum concurrently active leasesmaxRetries- maximum retry attempts before dead-letterdefaultVisibilityTimeout- default visibility timeout
- All Implemented Interfaces:
Serializable
public record QueueOptions(int partitions, int maxQueuedMessages, int maxPayloadBytes, int maxLeaseBatchSize, int maxActiveLeases, int maxRetries, Duration defaultVisibilityTimeout)
extends Record
implements Serializable
Queue configuration limits and policies.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQueueOptions(int partitions, int maxQueuedMessages, int maxPayloadBytes, int maxLeaseBatchSize, int maxActiveLeases, int maxRetries, Duration defaultVisibilityTimeout) Creates queue options. -
Method Summary
Modifier and TypeMethodDescriptionstatic QueueOptionsdefaults()Returns conservative defaults.Returns the value of thedefaultVisibilityTimeoutrecord component.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 themaxActiveLeasesrecord component.intReturns the value of themaxLeaseBatchSizerecord component.intReturns the value of themaxPayloadBytesrecord component.intReturns the value of themaxQueuedMessagesrecord component.intReturns the value of themaxRetriesrecord component.intReturns the value of thepartitionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueueOptions
public QueueOptions(int partitions, int maxQueuedMessages, int maxPayloadBytes, int maxLeaseBatchSize, int maxActiveLeases, int maxRetries, Duration defaultVisibilityTimeout) Creates queue options.- Throws:
IllegalArgumentException- when limits are invalid
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
partitions
public int partitions()Returns the value of thepartitionsrecord component.- Returns:
- the value of the
partitionsrecord component
-
maxQueuedMessages
public int maxQueuedMessages()Returns the value of themaxQueuedMessagesrecord component.- Returns:
- the value of the
maxQueuedMessagesrecord component
-
maxPayloadBytes
public int maxPayloadBytes()Returns the value of themaxPayloadBytesrecord component.- Returns:
- the value of the
maxPayloadBytesrecord component
-
maxLeaseBatchSize
public int maxLeaseBatchSize()Returns the value of themaxLeaseBatchSizerecord component.- Returns:
- the value of the
maxLeaseBatchSizerecord component
-
maxActiveLeases
public int maxActiveLeases()Returns the value of themaxActiveLeasesrecord component.- Returns:
- the value of the
maxActiveLeasesrecord component
-
maxRetries
public int maxRetries()Returns the value of themaxRetriesrecord component.- Returns:
- the value of the
maxRetriesrecord component
-
defaultVisibilityTimeout
Returns the value of thedefaultVisibilityTimeoutrecord component.- Returns:
- the value of the
defaultVisibilityTimeoutrecord component
-