Record Class Topic.Metrics
java.lang.Object
java.lang.Record
io.aleph0.yap.core.transport.Topic.Metrics
-
Constructor Summary
ConstructorsConstructorDescriptionMetrics(long published, long stalls) Creates an instance of aMetricsrecord class. -
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.longReturns the value of thepublishedrecord component.longstalls()Returns the value of thestallsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Metrics
public Metrics(long published, long stalls) Creates an instance of aMetricsrecord class.- Parameters:
published- the value for thepublishedrecord componentstalls- the value for thestallsrecord 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. -
published
public long published()Returns the value of thepublishedrecord component.- Returns:
- the value of the
publishedrecord component
-
stalls
public long stalls()Returns the value of thestallsrecord component.- Returns:
- the value of the
stallsrecord component
-