Record Class ReliableTopic.TopicStatistics
java.lang.Object
java.lang.Record
com.loomcache.server.datastructures.ReliableTopic.TopicStatistics
- Enclosing class:
ReliableTopic<T>
public static record ReliableTopic.TopicStatistics(long totalPublished, long totalDelivered, long listenerFailures, int subscriberCount, long avgDeliveryTimeNs, long headSequence, long tailSequence, int storedMessages, int capacity)
extends Record
Snapshot of ReliableTopic statistics.
- Since:
- 1.1
-
Constructor Summary
ConstructorsConstructorDescriptionTopicStatistics(long totalPublished, long totalDelivered, long listenerFailures, int subscriberCount, long avgDeliveryTimeNs, long headSequence, long tailSequence, int storedMessages, int capacity) Creates an instance of aTopicStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theavgDeliveryTimeNsrecord component.intcapacity()Returns the value of thecapacityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theheadSequencerecord component.longReturns the value of thelistenerFailuresrecord component.intReturns the value of thestoredMessagesrecord component.intReturns the value of thesubscriberCountrecord component.longReturns the value of thetailSequencerecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalDeliveredrecord component.longReturns the value of thetotalPublishedrecord component.
-
Constructor Details
-
TopicStatistics
public TopicStatistics(long totalPublished, long totalDelivered, long listenerFailures, int subscriberCount, long avgDeliveryTimeNs, long headSequence, long tailSequence, int storedMessages, int capacity) Creates an instance of aTopicStatisticsrecord class.- Parameters:
totalPublished- the value for thetotalPublishedrecord componenttotalDelivered- the value for thetotalDeliveredrecord componentlistenerFailures- the value for thelistenerFailuresrecord componentsubscriberCount- the value for thesubscriberCountrecord componentavgDeliveryTimeNs- the value for theavgDeliveryTimeNsrecord componentheadSequence- the value for theheadSequencerecord componenttailSequence- the value for thetailSequencerecord componentstoredMessages- the value for thestoredMessagesrecord componentcapacity- the value for thecapacityrecord 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. -
totalPublished
public long totalPublished()Returns the value of thetotalPublishedrecord component.- Returns:
- the value of the
totalPublishedrecord component
-
totalDelivered
public long totalDelivered()Returns the value of thetotalDeliveredrecord component.- Returns:
- the value of the
totalDeliveredrecord component
-
listenerFailures
public long listenerFailures()Returns the value of thelistenerFailuresrecord component.- Returns:
- the value of the
listenerFailuresrecord component
-
subscriberCount
public int subscriberCount()Returns the value of thesubscriberCountrecord component.- Returns:
- the value of the
subscriberCountrecord component
-
avgDeliveryTimeNs
public long avgDeliveryTimeNs()Returns the value of theavgDeliveryTimeNsrecord component.- Returns:
- the value of the
avgDeliveryTimeNsrecord component
-
headSequence
public long headSequence()Returns the value of theheadSequencerecord component.- Returns:
- the value of the
headSequencerecord component
-
tailSequence
public long tailSequence()Returns the value of thetailSequencerecord component.- Returns:
- the value of the
tailSequencerecord component
-
storedMessages
public int storedMessages()Returns the value of thestoredMessagesrecord component.- Returns:
- the value of the
storedMessagesrecord component
-
capacity
public int capacity()Returns the value of thecapacityrecord component.- Returns:
- the value of the
capacityrecord component
-