Record Class ConsistencySubsystem.ResetResult

java.lang.Object
java.lang.Record
com.loomcache.server.cp.ConsistencySubsystem.ResetResult
Enclosing class:
ConsistencySubsystem

public static record ConsistencySubsystem.ResetResult(int locksCleared, int semaphoresCleared, int atomicLongsCleared, int atomicReferencesCleared, int countDownLatchesCleared, int sessionsCleared) extends Record
Since:
1.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    ResetResult(int locksCleared, int semaphoresCleared, int atomicLongsCleared, int atomicReferencesCleared, int countDownLatchesCleared, int sessionsCleared)
    Creates an instance of a ResetResult record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the atomicLongsCleared record component.
    int
    Returns the value of the atomicReferencesCleared record component.
    int
    Returns the value of the countDownLatchesCleared record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the locksCleared record component.
    int
     
    int
    Returns the value of the semaphoresCleared record component.
    int
    Returns the value of the sessionsCleared record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

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

    • ResetResult

      public ResetResult(int locksCleared, int semaphoresCleared, int atomicLongsCleared, int atomicReferencesCleared, int countDownLatchesCleared, int sessionsCleared)
      Creates an instance of a ResetResult record class.
      Parameters:
      locksCleared - the value for the locksCleared record component
      semaphoresCleared - the value for the semaphoresCleared record component
      atomicLongsCleared - the value for the atomicLongsCleared record component
      atomicReferencesCleared - the value for the atomicReferencesCleared record component
      countDownLatchesCleared - the value for the countDownLatchesCleared record component
      sessionsCleared - the value for the sessionsCleared record component
  • Method Details

    • primitivesCleared

      public int primitivesCleared()
    • 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.
    • locksCleared

      public int locksCleared()
      Returns the value of the locksCleared record component.
      Returns:
      the value of the locksCleared record component
    • semaphoresCleared

      public int semaphoresCleared()
      Returns the value of the semaphoresCleared record component.
      Returns:
      the value of the semaphoresCleared record component
    • atomicLongsCleared

      public int atomicLongsCleared()
      Returns the value of the atomicLongsCleared record component.
      Returns:
      the value of the atomicLongsCleared record component
    • atomicReferencesCleared

      public int atomicReferencesCleared()
      Returns the value of the atomicReferencesCleared record component.
      Returns:
      the value of the atomicReferencesCleared record component
    • countDownLatchesCleared

      public int countDownLatchesCleared()
      Returns the value of the countDownLatchesCleared record component.
      Returns:
      the value of the countDownLatchesCleared record component
    • sessionsCleared

      public int sessionsCleared()
      Returns the value of the sessionsCleared record component.
      Returns:
      the value of the sessionsCleared record component