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

    Constructors
    Constructor
    Description
    CqcStatistics(int viewSize, long eventsProcessed, long predicateEvaluations, long viewUpdates, int listenerCount, boolean active)
    Creates an instance of a CqcStatistics record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the active record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the eventsProcessed record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the listenerCount record component.
    long
    Returns the value of the predicateEvaluations record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the viewSize record component.
    long
    Returns the value of the viewUpdates record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CqcStatistics

      public CqcStatistics(int viewSize, long eventsProcessed, long predicateEvaluations, long viewUpdates, int listenerCount, boolean active)
      Creates an instance of a CqcStatistics record class.
      Parameters:
      viewSize - the value for the viewSize record component
      eventsProcessed - the value for the eventsProcessed record component
      predicateEvaluations - the value for the predicateEvaluations record component
      viewUpdates - the value for the viewUpdates record component
      listenerCount - the value for the listenerCount record component
      active - the value for the active record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • viewSize

      public int viewSize()
      Returns the value of the viewSize record component.
      Returns:
      the value of the viewSize record component
    • eventsProcessed

      public long eventsProcessed()
      Returns the value of the eventsProcessed record component.
      Returns:
      the value of the eventsProcessed record component
    • predicateEvaluations

      public long predicateEvaluations()
      Returns the value of the predicateEvaluations record component.
      Returns:
      the value of the predicateEvaluations record component
    • viewUpdates

      public long viewUpdates()
      Returns the value of the viewUpdates record component.
      Returns:
      the value of the viewUpdates record component
    • listenerCount

      public int listenerCount()
      Returns the value of the listenerCount record component.
      Returns:
      the value of the listenerCount record component
    • active

      public boolean active()
      Returns the value of the active record component.
      Returns:
      the value of the active record component