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
ConstructorsConstructorDescriptionResetResult(int locksCleared, int semaphoresCleared, int atomicLongsCleared, int atomicReferencesCleared, int countDownLatchesCleared, int sessionsCleared) Creates an instance of aResetResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theatomicLongsClearedrecord component.intReturns the value of theatomicReferencesClearedrecord component.intReturns the value of thecountDownLatchesClearedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelocksClearedrecord component.intintReturns the value of thesemaphoresClearedrecord component.intReturns the value of thesessionsClearedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResetResult
public ResetResult(int locksCleared, int semaphoresCleared, int atomicLongsCleared, int atomicReferencesCleared, int countDownLatchesCleared, int sessionsCleared) Creates an instance of aResetResultrecord class.- Parameters:
locksCleared- the value for thelocksClearedrecord componentsemaphoresCleared- the value for thesemaphoresClearedrecord componentatomicLongsCleared- the value for theatomicLongsClearedrecord componentatomicReferencesCleared- the value for theatomicReferencesClearedrecord componentcountDownLatchesCleared- the value for thecountDownLatchesClearedrecord componentsessionsCleared- the value for thesessionsClearedrecord component
-
-
Method Details
-
primitivesCleared
public int primitivesCleared() -
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. -
locksCleared
public int locksCleared()Returns the value of thelocksClearedrecord component.- Returns:
- the value of the
locksClearedrecord component
-
semaphoresCleared
public int semaphoresCleared()Returns the value of thesemaphoresClearedrecord component.- Returns:
- the value of the
semaphoresClearedrecord component
-
atomicLongsCleared
public int atomicLongsCleared()Returns the value of theatomicLongsClearedrecord component.- Returns:
- the value of the
atomicLongsClearedrecord component
-
atomicReferencesCleared
public int atomicReferencesCleared()Returns the value of theatomicReferencesClearedrecord component.- Returns:
- the value of the
atomicReferencesClearedrecord component
-
countDownLatchesCleared
public int countDownLatchesCleared()Returns the value of thecountDownLatchesClearedrecord component.- Returns:
- the value of the
countDownLatchesClearedrecord component
-
sessionsCleared
public int sessionsCleared()Returns the value of thesessionsClearedrecord component.- Returns:
- the value of the
sessionsClearedrecord component
-