Class CacheLoaderIntegration<K,V>
java.lang.Object
com.loomcache.server.jcache.CacheLoaderIntegration<K,V>
- Type Parameters:
K- the key typeV- the value type
Manages read-through and bulk cache loading strategies.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic final recordLoader statistics snapshot. -
Constructor Summary
ConstructorsConstructorDescriptionCreate a loader with single-key loading.CacheLoaderIntegration(CacheLoaderIntegration.BackingStoreLoader<K, V> loader, CacheLoaderIntegration.BackingStoreBulkLoader<K, V> bulkLoader) Create a loader with both single-key and bulk loading. -
Method Summary
Modifier and TypeMethodDescriptionGet loader statistics.@Nullable VLoad a single value from backing store.Load multiple values from backing store in parallel.voidRecord a cache hit.
-
Constructor Details
-
CacheLoaderIntegration
Create a loader with single-key loading. -
CacheLoaderIntegration
public CacheLoaderIntegration(CacheLoaderIntegration.BackingStoreLoader<K, V> loader, CacheLoaderIntegration.BackingStoreBulkLoader<K, V> bulkLoader) Create a loader with both single-key and bulk loading.
-
-
Method Details
-
load
-
loadAll
-
recordCacheHit
public void recordCacheHit()Record a cache hit. -
getLoaderStats
Get loader statistics.
-