Record Class DefaultQueue.Metrics
java.lang.Object
java.lang.Record
io.aleph0.yap.core.transport.queue.DefaultQueue.Metrics
- Enclosing class:
DefaultQueue<T>
public static record DefaultQueue.Metrics(int depth, long sent, long blocks, long received, long waits)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMetrics(int depth, long sent, long blocks, long received, long waits) Creates an instance of aMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongblocks()Returns the value of theblocksrecord component.intdepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longreceived()Returns the value of thereceivedrecord component.longsent()Returns the value of thesentrecord component.final StringtoString()Returns a string representation of this record class.longwaits()Returns the value of thewaitsrecord component.
-
Constructor Details
-
Metrics
public Metrics(int depth, long sent, long blocks, long received, long waits) Creates an instance of aMetricsrecord class.- Parameters:
depth- the value for thedepthrecord componentsent- the value for thesentrecord componentblocks- the value for theblocksrecord componentreceived- the value for thereceivedrecord componentwaits- the value for thewaitsrecord component
-
-
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 with thecomparemethod from their corresponding wrapper classes. -
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
sent
public long sent()Returns the value of thesentrecord component.- Returns:
- the value of the
sentrecord component
-
blocks
public long blocks()Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-
received
public long received()Returns the value of thereceivedrecord component.- Returns:
- the value of the
receivedrecord component
-
waits
public long waits()Returns the value of thewaitsrecord component.- Returns:
- the value of the
waitsrecord component
-