Record Class DistributedMap.EntryRollbackState<V>
java.lang.Object
java.lang.Record
com.loomcache.server.datastructures.DistributedMap.EntryRollbackState<V>
- Enclosing class:
DistributedMap<K,V>
public static record DistributedMap.EntryRollbackState<V>(boolean existed, @Nullable V value, @Nullable Long expiryTimeNanos, @Nullable Long lastAccessNanos, @Nullable Long maxIdleNanos, @Nullable DistributedMap.WriteMetadata writeMetadata, @Nullable Long hitCount, @Nullable Long lastAccessMillis)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEntryRollbackState(boolean existed, @Nullable V value, @Nullable Long expiryTimeNanos, @Nullable Long lastAccessNanos, @Nullable Long maxIdleNanos, @Nullable DistributedMap.WriteMetadata writeMetadata, @Nullable Long hitCount, @Nullable Long lastAccessMillis) Creates an instance of aEntryRollbackStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanexisted()Returns the value of theexistedrecord component.@Nullable LongReturns the value of theexpiryTimeNanosrecord component.final inthashCode()Returns a hash code value for this object.@Nullable LonghitCount()Returns the value of thehitCountrecord component.@Nullable LongReturns the value of thelastAccessMillisrecord component.@Nullable LongReturns the value of thelastAccessNanosrecord component.@Nullable LongReturns the value of themaxIdleNanosrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Vvalue()Returns the value of thevaluerecord component.@Nullable DistributedMap.WriteMetadataReturns the value of thewriteMetadatarecord component.
-
Constructor Details
-
EntryRollbackState
public EntryRollbackState(boolean existed, @Nullable V value, @Nullable Long expiryTimeNanos, @Nullable Long lastAccessNanos, @Nullable Long maxIdleNanos, @Nullable DistributedMap.WriteMetadata writeMetadata, @Nullable Long hitCount, @Nullable Long lastAccessMillis) Creates an instance of aEntryRollbackStaterecord class.- Parameters:
existed- the value for theexistedrecord componentvalue- the value for thevaluerecord componentexpiryTimeNanos- the value for theexpiryTimeNanosrecord componentlastAccessNanos- the value for thelastAccessNanosrecord componentmaxIdleNanos- the value for themaxIdleNanosrecord componentwriteMetadata- the value for thewriteMetadatarecord componenthitCount- the value for thehitCountrecord componentlastAccessMillis- the value for thelastAccessMillisrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
existed
public boolean existed()Returns the value of theexistedrecord component.- Returns:
- the value of the
existedrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
expiryTimeNanos
Returns the value of theexpiryTimeNanosrecord component.- Returns:
- the value of the
expiryTimeNanosrecord component
-
lastAccessNanos
Returns the value of thelastAccessNanosrecord component.- Returns:
- the value of the
lastAccessNanosrecord component
-
maxIdleNanos
Returns the value of themaxIdleNanosrecord component.- Returns:
- the value of the
maxIdleNanosrecord component
-
writeMetadata
Returns the value of thewriteMetadatarecord component.- Returns:
- the value of the
writeMetadatarecord component
-
hitCount
Returns the value of thehitCountrecord component.- Returns:
- the value of the
hitCountrecord component
-
lastAccessMillis
Returns the value of thelastAccessMillisrecord component.- Returns:
- the value of the
lastAccessMillisrecord component
-