Record Class PreloadPolicy.PriorityBased
java.lang.Object
java.lang.Record
com.loomcache.server.cache.PreloadPolicy.PriorityBased
- All Implemented Interfaces:
PreloadPolicy
- Enclosing interface:
PreloadPolicy
public static record PreloadPolicy.PriorityBased(Map<String,Integer> priorities)
extends Record
implements PreloadPolicy
Preload keys based on explicit priority values.
Higher priority keys are loaded first.
Allows fine-grained control over warming order and selection.
-
Nested Class Summary
Nested classes/interfaces inherited from interface PreloadPolicy
PreloadPolicy.AllKeys, PreloadPolicy.HotKeys, PreloadPolicy.PatternBased, PreloadPolicy.PriorityBased -
Constructor Summary
ConstructorsConstructorDescriptionPriorityBased(Map<String, Integer> priorities) Creates an instance of aPriorityBasedrecord class. -
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.Returns the value of theprioritiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PriorityBased
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
priorities
-