Record Class CacheConfigEntity

java.lang.Object
java.lang.Record
io.micronaut.cache.oracle.persistence.CacheConfigEntity
Record Components:
cacheName - The cache name
blocking - Whether blocking mode is enabled
lockWaitTimeoutMs - The blocking lock wait timeout in milliseconds
cleanupIntervalSeconds - The cleanup interval in seconds
cleanupBatchSize - The cleanup batch size
maximumSize - The maximum entry count
maximumWeight - The maximum total weight
createdAt - The row creation time
updatedAt - The last update time

@MappedEntity("${micronaut.oracle.cache.prefix:MN}_CACHE_CONFIG") public record CacheConfigEntity(String cacheName, boolean blocking, long lockWaitTimeoutMs, long cleanupIntervalSeconds, long cleanupBatchSize, Long maximumSize, Long maximumWeight, Instant createdAt, Instant updatedAt) extends Record
Persisted per-cache Oracle configuration row.
Since:
6.2.0
Author:
Davide Cocco
  • Constructor Details

    • CacheConfigEntity

      public CacheConfigEntity(@Id String cacheName, boolean blocking, long lockWaitTimeoutMs, long cleanupIntervalSeconds, long cleanupBatchSize, Long maximumSize, Long maximumWeight, Instant createdAt, Instant updatedAt)
      Creates an instance of a CacheConfigEntity record class.
      Parameters:
      cacheName - the value for the cacheName record component
      blocking - the value for the blocking record component
      lockWaitTimeoutMs - the value for the lockWaitTimeoutMs record component
      cleanupIntervalSeconds - the value for the cleanupIntervalSeconds record component
      cleanupBatchSize - the value for the cleanupBatchSize record component
      maximumSize - the value for the maximumSize record component
      maximumWeight - the value for the maximumWeight record component
      createdAt - the value for the createdAt record component
      updatedAt - the value for the updatedAt 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.
    • cacheName

      @Id @MappedProperty("CACHE_NAME") public String cacheName()
      Returns the value of the cacheName record component.
      Returns:
      the value of the cacheName record component
    • blocking

      @MappedProperty("BLOCKING") public boolean blocking()
      Returns the value of the blocking record component.
      Returns:
      the value of the blocking record component
    • lockWaitTimeoutMs

      @MappedProperty("LOCK_WAIT_TIMEOUT_MS") public long lockWaitTimeoutMs()
      Returns the value of the lockWaitTimeoutMs record component.
      Returns:
      the value of the lockWaitTimeoutMs record component
    • cleanupIntervalSeconds

      @MappedProperty("CLEANUP_INTERVAL_SECONDS") public long cleanupIntervalSeconds()
      Returns the value of the cleanupIntervalSeconds record component.
      Returns:
      the value of the cleanupIntervalSeconds record component
    • cleanupBatchSize

      @MappedProperty("CLEANUP_BATCH_SIZE") public long cleanupBatchSize()
      Returns the value of the cleanupBatchSize record component.
      Returns:
      the value of the cleanupBatchSize record component
    • maximumSize

      @MappedProperty("MAXIMUM_SIZE") public Long maximumSize()
      Returns the value of the maximumSize record component.
      Returns:
      the value of the maximumSize record component
    • maximumWeight

      @MappedProperty("MAXIMUM_WEIGHT") public Long maximumWeight()
      Returns the value of the maximumWeight record component.
      Returns:
      the value of the maximumWeight record component
    • createdAt

      @MappedProperty("CREATED_AT") public Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • updatedAt

      @MappedProperty("UPDATED_AT") public Instant updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component