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

    Constructors
    Constructor
    Description
    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 a EntryRollbackState record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the existed record component.
    @Nullable Long
    Returns the value of the expiryTimeNanos record component.
    final int
    Returns a hash code value for this object.
    @Nullable Long
    Returns the value of the hitCount record component.
    @Nullable Long
    Returns the value of the lastAccessMillis record component.
    @Nullable Long
    Returns the value of the lastAccessNanos record component.
    @Nullable Long
    Returns the value of the maxIdleNanos record component.
    final String
    Returns a string representation of this record class.
    @Nullable V
    Returns the value of the value record component.
    Returns the value of the writeMetadata record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a EntryRollbackState record class.
      Parameters:
      existed - the value for the existed record component
      value - the value for the value record component
      expiryTimeNanos - the value for the expiryTimeNanos record component
      lastAccessNanos - the value for the lastAccessNanos record component
      maxIdleNanos - the value for the maxIdleNanos record component
      writeMetadata - the value for the writeMetadata record component
      hitCount - the value for the hitCount record component
      lastAccessMillis - the value for the lastAccessMillis 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • existed

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

      public @Nullable V value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • expiryTimeNanos

      public @Nullable Long expiryTimeNanos()
      Returns the value of the expiryTimeNanos record component.
      Returns:
      the value of the expiryTimeNanos record component
    • lastAccessNanos

      public @Nullable Long lastAccessNanos()
      Returns the value of the lastAccessNanos record component.
      Returns:
      the value of the lastAccessNanos record component
    • maxIdleNanos

      public @Nullable Long maxIdleNanos()
      Returns the value of the maxIdleNanos record component.
      Returns:
      the value of the maxIdleNanos record component
    • writeMetadata

      public @Nullable DistributedMap.WriteMetadata writeMetadata()
      Returns the value of the writeMetadata record component.
      Returns:
      the value of the writeMetadata record component
    • hitCount

      public @Nullable Long hitCount()
      Returns the value of the hitCount record component.
      Returns:
      the value of the hitCount record component
    • lastAccessMillis

      public @Nullable Long lastAccessMillis()
      Returns the value of the lastAccessMillis record component.
      Returns:
      the value of the lastAccessMillis record component