Record Class QuarkusPersistenceUnitCacheConfiguration
java.lang.Object
java.lang.Record
io.quarkus.hibernate.orm.runtime.cache.QuarkusPersistenceUnitCacheConfiguration
public record QuarkusPersistenceUnitCacheConfiguration(Map<String,QuarkusPersistenceUnitCacheConfiguration.Cache> caches)
extends Record
Cache configuration for a Hibernate persistence unit.
Created at build time and serialized into bytecode via recorders, used at runtime to configure Caffeine caches.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe config key where this configuration must be placed in Hibernate properties. -
Constructor Summary
ConstructorsConstructorDescriptionQuarkusPersistenceUnitCacheConfiguration(Map<String, QuarkusPersistenceUnitCacheConfiguration.Cache> caches) Creates an instance of aQuarkusPersistenceUnitCacheConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncaches()Returns the value of thecachesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CONFIG_KEY
The config key where this configuration must be placed in Hibernate properties.- See Also:
-
-
Constructor Details
-
QuarkusPersistenceUnitCacheConfiguration
public QuarkusPersistenceUnitCacheConfiguration(Map<String, QuarkusPersistenceUnitCacheConfiguration.Cache> caches) Creates an instance of aQuarkusPersistenceUnitCacheConfigurationrecord class.- Parameters:
caches- the value for thecachesrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
caches
Returns the value of thecachesrecord component.- Returns:
- the value of the
cachesrecord component
-