Record Class SubscriptionStats
java.lang.Object
java.lang.Record
com.loomcache.server.journal.SubscriptionStats
- Record Components:
delivered- Number of entries successfully delivered to the listenerpending- Number of entries waiting in the backpressure bufferlag- Difference between journal head and subscription headdropped- Number of entries dropped due to subscription queue overflow
public record SubscriptionStats(long delivered, long pending, long lag, long dropped)
extends Record
Statistics for a journal subscription.
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionSubscriptionStats(long delivered, long pending, long lag, long dropped) Creates an instance of aSubscriptionStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedeliveredrecord component.longdropped()Returns the value of thedroppedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longlag()Returns the value of thelagrecord component.longpending()Returns the value of thependingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubscriptionStats
public SubscriptionStats(long delivered, long pending, long lag, long dropped) Creates an instance of aSubscriptionStatsrecord class.
-
-
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. -
delivered
-
pending
-
lag
-
dropped
-