Record Class QuarkusPersistenceUnitCacheConfiguration.Cache
java.lang.Object
java.lang.Record
io.quarkus.hibernate.orm.runtime.cache.QuarkusPersistenceUnitCacheConfiguration.Cache
- Record Components:
maxSize- maximum number of entries (count-based eviction). Ignored if maximumWeight is set.maxIdle- maximum idle time before expiration.maximumWeight- maximum total weight (weight-based eviction).-1means not set.weigherClassName- fully qualified class name of a Weigher implementation.nullmeans not set.
- Enclosing class:
QuarkusPersistenceUnitCacheConfiguration
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanmaxIdle()Returns the value of themaxIdlerecord component.longReturns the value of themaximumWeightrecord component.longmaxSize()Returns the value of themaxSizerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theweigherClassNamerecord component.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
Cache
Creates an instance of aCacherecord class.- Parameters:
maxSize- the value for themaxSizerecord componentmaxIdle- the value for themaxIdlerecord componentmaximumWeight- the value for themaximumWeightrecord componentweigherClassName- the value for theweigherClassNamerecord component
-
-
Method Details
-
hasMaximumWeight
public boolean hasMaximumWeight() -
hasWeigherClass
public boolean hasWeigherClass() -
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. -
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. -
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 '=='. -
maxSize
public long maxSize()Returns the value of themaxSizerecord component.- Returns:
- the value of the
maxSizerecord component
-
maxIdle
Returns the value of themaxIdlerecord component.- Returns:
- the value of the
maxIdlerecord component
-
maximumWeight
public long maximumWeight()Returns the value of themaximumWeightrecord component.- Returns:
- the value of the
maximumWeightrecord component
-
weigherClassName
Returns the value of theweigherClassNamerecord component.- Returns:
- the value of the
weigherClassNamerecord component
-