Record Class CacheConfigEntity
java.lang.Object
java.lang.Record
io.micronaut.cache.oracle.persistence.CacheConfigEntity
- Record Components:
cacheName- The cache nameblocking- Whether blocking mode is enabledlockWaitTimeoutMs- The blocking lock wait timeout in millisecondscleanupIntervalSeconds- The cleanup interval in secondscleanupBatchSize- The cleanup batch sizemaximumSize- The maximum entry countmaximumWeight- The maximum total weightcreatedAt- The row creation timeupdatedAt- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanblocking()Returns the value of theblockingrecord component.Returns the value of thecacheNamerecord component.longReturns the value of thecleanupBatchSizerecord component.longReturns the value of thecleanupIntervalSecondsrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thelockWaitTimeoutMsrecord component.Returns the value of themaximumSizerecord component.Returns the value of themaximumWeightrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.
-
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 aCacheConfigEntityrecord class.- Parameters:
cacheName- the value for thecacheNamerecord componentblocking- the value for theblockingrecord componentlockWaitTimeoutMs- the value for thelockWaitTimeoutMsrecord componentcleanupIntervalSeconds- the value for thecleanupIntervalSecondsrecord componentcleanupBatchSize- the value for thecleanupBatchSizerecord componentmaximumSize- the value for themaximumSizerecord componentmaximumWeight- the value for themaximumWeightrecord componentcreatedAt- the value for thecreatedAtrecord componentupdatedAt- the value for theupdatedAtrecord 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. -
cacheName
-
blocking
-
lockWaitTimeoutMs
@MappedProperty("LOCK_WAIT_TIMEOUT_MS") public long lockWaitTimeoutMs()Returns the value of thelockWaitTimeoutMsrecord component.- Returns:
- the value of the
lockWaitTimeoutMsrecord component
-
cleanupIntervalSeconds
@MappedProperty("CLEANUP_INTERVAL_SECONDS") public long cleanupIntervalSeconds()Returns the value of thecleanupIntervalSecondsrecord component.- Returns:
- the value of the
cleanupIntervalSecondsrecord component
-
cleanupBatchSize
@MappedProperty("CLEANUP_BATCH_SIZE") public long cleanupBatchSize()Returns the value of thecleanupBatchSizerecord component.- Returns:
- the value of the
cleanupBatchSizerecord component
-
maximumSize
Returns the value of themaximumSizerecord component.- Returns:
- the value of the
maximumSizerecord component
-
maximumWeight
Returns the value of themaximumWeightrecord component.- Returns:
- the value of the
maximumWeightrecord component
-
createdAt
-
updatedAt
-