Package org.apache.camel.spi
Record Class BrowsableEndpoint.BrowseStatus
java.lang.Object
java.lang.Record
org.apache.camel.spi.BrowsableEndpoint.BrowseStatus
- Record Components:
size- number of messages in the queuefirstTimestamp- timestamp of first message (0 if no information)lastTimestamp- timestamp of last message (0 if no information)
- Enclosing interface:
BrowsableEndpoint
public static record BrowsableEndpoint.BrowseStatus(int size, long firstTimestamp, long lastTimestamp)
extends Record
A quick status of the browse queue
-
Constructor Summary
ConstructorsConstructorDescriptionBrowseStatus(int size, long firstTimestamp, long lastTimestamp) Creates an instance of aBrowseStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefirstTimestamprecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thelastTimestamprecord component.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BrowseStatus
public BrowseStatus(int size, long firstTimestamp, long lastTimestamp) Creates an instance of aBrowseStatusrecord class.- Parameters:
size- the value for thesizerecord componentfirstTimestamp- the value for thefirstTimestamprecord componentlastTimestamp- the value for thelastTimestamprecord 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. All components in this record class are compared with '=='. -
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
firstTimestamp
public long firstTimestamp()Returns the value of thefirstTimestamprecord component.- Returns:
- the value of the
firstTimestamprecord component
-
lastTimestamp
public long lastTimestamp()Returns the value of thelastTimestamprecord component.- Returns:
- the value of the
lastTimestamprecord component
-