Record Class Queue.Metrics
java.lang.Object
java.lang.Record
io.aleph0.yap.core.transport.Queue.Metrics
-
Constructor Summary
ConstructorsConstructorDescriptionMetrics(long pending, long produced, long stalls, long consumed, long waits) Creates an instance of aMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongconsumed()Returns the value of theconsumedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longpending()Returns the value of thependingrecord component.longproduced()Returns the value of theproducedrecord component.longstalls()Returns the value of thestallsrecord component.final StringtoString()Returns a string representation of this record class.longwaits()Returns the value of thewaitsrecord component.
-
Constructor Details
-
Metrics
public Metrics(long pending, long produced, long stalls, long consumed, long waits) Creates an instance of aMetricsrecord class.- Parameters:
pending- the value for thependingrecord componentproduced- the value for theproducedrecord componentstalls- the value for thestallsrecord componentconsumed- the value for theconsumedrecord 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. -
pending
public long pending()Returns the value of thependingrecord component.- Returns:
- the value of the
pendingrecord component
-
produced
public long produced()Returns the value of theproducedrecord component.- Returns:
- the value of the
producedrecord component
-
stalls
public long stalls()Returns the value of thestallsrecord component.- Returns:
- the value of the
stallsrecord component
-
consumed
public long consumed()Returns the value of theconsumedrecord component.- Returns:
- the value of the
consumedrecord component
-
waits
public long waits()Returns the value of thewaitsrecord component.- Returns:
- the value of the
waitsrecord component
-