Record Class ContinuousQueryCache.CqcStatistics
java.lang.Object
java.lang.Record
com.loomcache.server.datastructures.ContinuousQueryCache.CqcStatistics
- Enclosing class:
ContinuousQueryCache<K,V>
public static record ContinuousQueryCache.CqcStatistics(int viewSize, long eventsProcessed, long predicateEvaluations, long viewUpdates, int listenerCount, boolean active)
extends Record
Snapshot of CQC statistics.
- Since:
- 1.1
-
Constructor Summary
ConstructorsConstructorDescriptionCqcStatistics(int viewSize, long eventsProcessed, long predicateEvaluations, long viewUpdates, int listenerCount, boolean active) Creates an instance of aCqcStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()Returns the value of theactiverecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theeventsProcessedrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thelistenerCountrecord component.longReturns the value of thepredicateEvaluationsrecord component.final StringtoString()Returns a string representation of this record class.intviewSize()Returns the value of theviewSizerecord component.longReturns the value of theviewUpdatesrecord component.
-
Constructor Details
-
CqcStatistics
public CqcStatistics(int viewSize, long eventsProcessed, long predicateEvaluations, long viewUpdates, int listenerCount, boolean active) Creates an instance of aCqcStatisticsrecord class.- Parameters:
viewSize- the value for theviewSizerecord componenteventsProcessed- the value for theeventsProcessedrecord componentpredicateEvaluations- the value for thepredicateEvaluationsrecord componentviewUpdates- the value for theviewUpdatesrecord componentlistenerCount- the value for thelistenerCountrecord componentactive- the value for theactiverecord 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. -
viewSize
public int viewSize()Returns the value of theviewSizerecord component.- Returns:
- the value of the
viewSizerecord component
-
eventsProcessed
public long eventsProcessed()Returns the value of theeventsProcessedrecord component.- Returns:
- the value of the
eventsProcessedrecord component
-
predicateEvaluations
public long predicateEvaluations()Returns the value of thepredicateEvaluationsrecord component.- Returns:
- the value of the
predicateEvaluationsrecord component
-
viewUpdates
public long viewUpdates()Returns the value of theviewUpdatesrecord component.- Returns:
- the value of the
viewUpdatesrecord component
-
listenerCount
public int listenerCount()Returns the value of thelistenerCountrecord component.- Returns:
- the value of the
listenerCountrecord component
-
active
public boolean active()Returns the value of theactiverecord component.- Returns:
- the value of the
activerecord component
-