Package net.blakez.bppmq.rest.model
Record Class PullBatchResponse
java.lang.Object
java.lang.Record
net.blakez.bppmq.rest.model.PullBatchResponse
public record PullBatchResponse(String topic, long index, long batchSize, List<String> msgs)
extends Record
- Author:
- Peter Blakeley : @pblakez pb@blakez.org
-
Constructor Summary
ConstructorsConstructorDescriptionPullBatchResponse(String topic, long index, long batchSize, List<String> msgs) Creates an instance of aPullBatchResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebatchSizerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longindex()Returns the value of theindexrecord component.msgs()Returns the value of themsgsrecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PullBatchResponse
Creates an instance of aPullBatchResponserecord class.- Parameters:
topic- the value for thetopicrecord componentindex- the value for theindexrecord componentbatchSize- the value for thebatchSizerecord componentmsgs- the value for themsgsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
topic
Returns the value of thetopicrecord component.- Returns:
- the value of the
topicrecord component
-
index
public long index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
batchSize
public long batchSize()Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-
msgs
Returns the value of themsgsrecord component.- Returns:
- the value of the
msgsrecord component
-