Record Class QueuePartition
java.lang.Object
java.lang.Record
org.j7m.middleware.api.messaging.QueuePartition
- Record Components:
queue- queue namepartitionId- partition identifier
- All Implemented Interfaces:
Serializable
public record QueuePartition(QueueName queue, QueuePartitionId partitionId)
extends Record
implements Serializable
Queue partition reference.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQueuePartition(QueueName queue, QueuePartitionId partitionId) Creates a queue partition reference. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepartitionIdrecord component.queue()Returns the value of thequeuerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueuePartition
Creates a queue partition reference.- Throws:
IllegalArgumentException- when required values are null
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
queue
-
partitionId
Returns the value of thepartitionIdrecord component.- Returns:
- the value of the
partitionIdrecord component
-