A B C D E F G H I J K L M N O P R S T U V W 
All Classes All Packages

A

addListener(CacheEventListener<K, V>) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Adds an event listener to receive notifications about cache operations.
asyncLoader(Function<K, CompletableFuture<V>>) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Sets the function used to load values asynchronously when not present in cache.
averageLoadTime() - Method in class io.github.dhruv1110.jcachex.CacheStats
Returns the average time spent loading a value, in nanoseconds.

B

backoffMultiplier(double) - Method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy.Builder
Sets the backoff multiplier for exponential backoff.
build() - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Builds and returns a new CacheConfig instance with the configured settings.
build() - Method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy.Builder
Builds the retry policy.
builder() - Static method in class io.github.dhruv1110.jcachex.CacheConfig
Creates a new builder instance for constructing cache configurations.
builder() - Static method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy
Creates a new retry policy builder.
Builder() - Constructor for class io.github.dhruv1110.jcachex.CacheConfig.Builder
 
Builder() - Constructor for class io.github.dhruv1110.jcachex.resilience.RetryPolicy.Builder
 

C

Cache<K,​V> - Interface in io.github.dhruv1110.jcachex
A thread-safe cache that provides a unified API for both Kotlin and Java applications.
CacheConfig<K,​V> - Class in io.github.dhruv1110.jcachex
Configuration options for a JCacheX cache instance.
CacheConfig.Builder<K,​V> - Class in io.github.dhruv1110.jcachex
Builder class for constructing CacheConfig instances.
CacheConfigurationException - Exception in io.github.dhruv1110.jcachex.exceptions
Exception thrown when there are configuration errors in cache setup.
CacheConfigurationException(String) - Constructor for exception io.github.dhruv1110.jcachex.exceptions.CacheConfigurationException
Constructs a new cache configuration exception with the specified detail message.
CacheConfigurationException(String, String) - Constructor for exception io.github.dhruv1110.jcachex.exceptions.CacheConfigurationException
Constructs a new cache configuration exception with a specific error code.
CacheConfigurationException(String, Throwable) - Constructor for exception io.github.dhruv1110.jcachex.exceptions.CacheConfigurationException
Constructs a new cache configuration exception with the specified detail message and cause.
CacheEntry<V> - Class in io.github.dhruv1110.jcachex
Represents a cache entry containing a value along with metadata for cache management.
CacheEntry(V, long, Instant) - Constructor for class io.github.dhruv1110.jcachex.CacheEntry
 
CacheEventListener<K,​V> - Interface in io.github.dhruv1110.jcachex
Interface for cache event listeners.
CacheException - Exception in io.github.dhruv1110.jcachex.exceptions
Base exception class for all JCacheX-related exceptions.
CacheException(String) - Constructor for exception io.github.dhruv1110.jcachex.exceptions.CacheException
Constructs a new cache exception with the specified detail message.
CacheException(String, CacheException.ErrorType, String, boolean) - Constructor for exception io.github.dhruv1110.jcachex.exceptions.CacheException
Constructs a new cache exception with the specified detail message, error type, and error code.
CacheException(String, Throwable) - Constructor for exception io.github.dhruv1110.jcachex.exceptions.CacheException
Constructs a new cache exception with the specified detail message and cause.
CacheException(String, Throwable, CacheException.ErrorType, String, boolean) - Constructor for exception io.github.dhruv1110.jcachex.exceptions.CacheException
Constructs a new cache exception with the specified detail message, cause, error type, and error code.
CacheException.ErrorType - Enum in io.github.dhruv1110.jcachex.exceptions
Error classification for handling different types of cache errors.
CacheOperationException - Exception in io.github.dhruv1110.jcachex.exceptions
Exception thrown when cache operations fail at runtime.
CacheOperationException(String) - Constructor for exception io.github.dhruv1110.jcachex.exceptions.CacheOperationException
Constructs a new cache operation exception with the specified detail message.
CacheOperationException(String, String, boolean) - Constructor for exception io.github.dhruv1110.jcachex.exceptions.CacheOperationException
Constructs a new cache operation exception with specific error code and retryable flag.
CacheOperationException(String, Throwable) - Constructor for exception io.github.dhruv1110.jcachex.exceptions.CacheOperationException
Constructs a new cache operation exception with the specified detail message and cause.
CacheOperationException(String, Throwable, String, boolean) - Constructor for exception io.github.dhruv1110.jcachex.exceptions.CacheOperationException
Constructs a new cache operation exception with cause, error code and retryable flag.
CacheStats - Class in io.github.dhruv1110.jcachex
Statistics for cache performance monitoring and analysis.
CacheStats() - Constructor for class io.github.dhruv1110.jcachex.CacheStats
 
CacheStats(AtomicLong, AtomicLong, AtomicLong, AtomicLong, AtomicLong, AtomicLong) - Constructor for class io.github.dhruv1110.jcachex.CacheStats
 
CAPACITY - io.github.dhruv1110.jcachex.exceptions.CacheException.ErrorType
Resource capacity errors
clear() - Method in interface io.github.dhruv1110.jcachex.Cache
Removes all mappings from this cache.
clear() - Method in class io.github.dhruv1110.jcachex.DefaultCache
 
clear() - Method in class io.github.dhruv1110.jcachex.eviction.CompositeEvictionStrategy
 
clear() - Method in interface io.github.dhruv1110.jcachex.eviction.EvictionStrategy
Clears all state maintained by the strategy.
clear() - Method in class io.github.dhruv1110.jcachex.eviction.FIFOEvictionStrategy
 
clear() - Method in class io.github.dhruv1110.jcachex.eviction.FILOEvictionStrategy
 
clear() - Method in class io.github.dhruv1110.jcachex.eviction.IdleTimeEvictionStrategy
 
clear() - Method in class io.github.dhruv1110.jcachex.eviction.LFUEvictionStrategy
 
clear() - Method in class io.github.dhruv1110.jcachex.eviction.LRUEvictionStrategy
 
clear() - Method in class io.github.dhruv1110.jcachex.eviction.WeightBasedEvictionStrategy
 
clearAsync() - Method in interface io.github.dhruv1110.jcachex.Cache
Asynchronously removes all mappings from this cache.
clearAsync() - Method in class io.github.dhruv1110.jcachex.DefaultCache
 
CLEARED - io.github.dhruv1110.jcachex.EvictionReason
The entry was evicted because the cache was cleared.
close() - Method in class io.github.dhruv1110.jcachex.DefaultCache
Closes this cache and releases any resources associated with it.
CompositeEvictionStrategy<K,​V> - Class in io.github.dhruv1110.jcachex.eviction
Composite eviction strategy that combines multiple strategies.
CompositeEvictionStrategy(List<EvictionStrategy<K, V>>) - Constructor for class io.github.dhruv1110.jcachex.eviction.CompositeEvictionStrategy
 
concurrencyLevel(int) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Sets the concurrency level for the cache's internal data structure.
concurrentModification(Object) - Static method in exception io.github.dhruv1110.jcachex.exceptions.CacheOperationException
Creates an operation exception for concurrent modification conflicts.
config() - Method in interface io.github.dhruv1110.jcachex.Cache
Returns the cache configuration.
config() - Method in class io.github.dhruv1110.jcachex.DefaultCache
 
CONFIGURATION - io.github.dhruv1110.jcachex.exceptions.CacheException.ErrorType
Configuration or setup errors
conflictingSettings(String, String) - Static method in exception io.github.dhruv1110.jcachex.exceptions.CacheConfigurationException
Creates a configuration exception for conflicting settings.
containsKey(K) - Method in interface io.github.dhruv1110.jcachex.Cache
Returns true if this cache contains a mapping for the specified key.
containsKey(K) - Method in class io.github.dhruv1110.jcachex.DefaultCache
 

D

DefaultCache<K,​V> - Class in io.github.dhruv1110.jcachex
Default implementation of the Cache interface.
DefaultCache(CacheConfig<K, V>) - Constructor for class io.github.dhruv1110.jcachex.DefaultCache
Creates a new DefaultCache with the specified configuration.
defaultPolicy() - Static method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy
Creates a default retry policy with reasonable defaults.
delayFunction(Function<Integer, Duration>) - Method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy.Builder
Sets a custom delay function.
directory(String) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Sets the directory path for persistent cache storage.

E

empty() - Static method in class io.github.dhruv1110.jcachex.CacheStats
 
entries() - Method in interface io.github.dhruv1110.jcachex.Cache
Returns a view of all the key-value pairs in this cache.
entries() - Method in class io.github.dhruv1110.jcachex.DefaultCache
 
equals(Object) - Method in class io.github.dhruv1110.jcachex.CacheStats
 
evictionCount() - Method in class io.github.dhruv1110.jcachex.CacheStats
Returns the number of entries that have been evicted from the cache.
evictionFailure(Throwable) - Static method in exception io.github.dhruv1110.jcachex.exceptions.CacheOperationException
Creates an operation exception for eviction failures.
EvictionReason - Enum in io.github.dhruv1110.jcachex
Reasons for cache eviction.
evictionStrategy(EvictionStrategy<K, V>) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Sets the eviction strategy used to determine which entries to remove when the cache size or weight limits are exceeded.
EvictionStrategy<K,​V> - Interface in io.github.dhruv1110.jcachex.eviction
Interface for cache eviction strategies.
execute(Runnable) - Method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy
Executes the given runnable with retry logic.
execute(Supplier<T>) - Method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy
Executes the given supplier with retry logic.
expireAfterAccess(long, TimeUnit) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Sets the duration after which an entry should be automatically removed from the cache once the duration has elapsed after the entry's creation, last update, or last access.
expireAfterAccess(Duration) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Sets the duration after which an entry should be automatically removed from the cache once the duration has elapsed after the entry's creation, last update, or last access.
expireAfterWrite(long, TimeUnit) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Sets the duration after which an entry should be automatically removed from the cache once the duration has elapsed after the entry's creation or last update.
expireAfterWrite(Duration) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Sets the duration after which an entry should be automatically removed from the cache once the duration has elapsed after the entry's creation or last update.
EXPIRED - io.github.dhruv1110.jcachex.EvictionReason
The entry was evicted because it expired.
EXPLICIT - io.github.dhruv1110.jcachex.EvictionReason
The entry was evicted because it was explicitly removed.

F

FIFOEvictionStrategy<K,​V> - Class in io.github.dhruv1110.jcachex.eviction
First In, First Out (FIFO) eviction strategy.
FIFOEvictionStrategy() - Constructor for class io.github.dhruv1110.jcachex.eviction.FIFOEvictionStrategy
 
FILOEvictionStrategy<K,​V> - Class in io.github.dhruv1110.jcachex.eviction
First In, Last Out (FILO) eviction strategy.
FILOEvictionStrategy() - Constructor for class io.github.dhruv1110.jcachex.eviction.FILOEvictionStrategy
 

G

get(K) - Method in interface io.github.dhruv1110.jcachex.Cache
Returns the value associated with the key in this cache, or null if there is no cached value for the key.
get(K) - Method in class io.github.dhruv1110.jcachex.DefaultCache
Returns the value associated with the key in this cache, or null if there is no cached value for the key.
getAccessCount() - Method in class io.github.dhruv1110.jcachex.CacheEntry
 
getAsync(K) - Method in interface io.github.dhruv1110.jcachex.Cache
Asynchronously returns the value associated with the key in this cache.
getAsync(K) - Method in class io.github.dhruv1110.jcachex.DefaultCache
 
getAsyncLoader() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns the function used to load values asynchronously when not present in cache.
getConcurrencyLevel() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns the concurrency level for the cache's internal data structure.
getCreationTime() - Method in class io.github.dhruv1110.jcachex.CacheEntry
 
getCurrentWeight() - Method in class io.github.dhruv1110.jcachex.eviction.WeightBasedEvictionStrategy
 
getDirectory() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns the directory path for persistent cache storage.
getErrorCode() - Method in exception io.github.dhruv1110.jcachex.exceptions.CacheException
Returns the specific error code, if available.
getErrorType() - Method in exception io.github.dhruv1110.jcachex.exceptions.CacheException
Returns the error type classification.
getEvictionCount() - Method in class io.github.dhruv1110.jcachex.CacheStats
 
getEvictionStrategy() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns the eviction strategy used to determine which entries to remove when the cache size or weight limits are exceeded.
getExpirationTime() - Method in class io.github.dhruv1110.jcachex.CacheEntry
 
getExpireAfterAccess() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns the duration after which an entry should be automatically removed from the cache once the duration has elapsed after the entry's creation, last update, or last access.
getExpireAfterWrite() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns the duration after which an entry should be automatically removed from the cache once the duration has elapsed after the entry's creation or last update.
getHitCount() - Method in class io.github.dhruv1110.jcachex.CacheStats
 
getInitialCapacity() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns the initial capacity of the cache's internal data structure.
getLastAccessTime() - Method in class io.github.dhruv1110.jcachex.CacheEntry
 
getListeners() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns a copy of the set of event listeners registered for this cache.
getLoadCount() - Method in class io.github.dhruv1110.jcachex.CacheStats
 
getLoader() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns the function used to load values synchronously when not present in cache.
getLoadFailureCount() - Method in class io.github.dhruv1110.jcachex.CacheStats
 
getMaximumSize() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns the maximum number of entries the cache may contain.
getMaximumWeight() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns the maximum total weight of entries the cache may contain.
getMissCount() - Method in class io.github.dhruv1110.jcachex.CacheStats
 
getRefreshAfterWrite() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns the duration after which an entry should be automatically refreshed once the duration has elapsed after the entry's creation or last update.
getTotalLoadTime() - Method in class io.github.dhruv1110.jcachex.CacheStats
 
getValue() - Method in class io.github.dhruv1110.jcachex.CacheEntry
 
getWeigher() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns the weigher function used to calculate entry weights.
getWeight() - Method in class io.github.dhruv1110.jcachex.CacheEntry
 

H

hashCode() - Method in class io.github.dhruv1110.jcachex.CacheStats
 
hitCount() - Method in class io.github.dhruv1110.jcachex.CacheStats
Returns the number of successful cache lookups.
hitRate() - Method in class io.github.dhruv1110.jcachex.CacheStats
Returns the ratio of successful cache lookups to total requests.

I

IdleTimeEvictionStrategy<K,​V> - Class in io.github.dhruv1110.jcachex.eviction
Time-based eviction strategy.
IdleTimeEvictionStrategy(Duration) - Constructor for class io.github.dhruv1110.jcachex.eviction.IdleTimeEvictionStrategy
 
incrementAccessCount() - Method in class io.github.dhruv1110.jcachex.CacheEntry
 
initialCapacity(int) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Sets the initial capacity of the cache's internal data structure.
initialDelay(Duration) - Method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy.Builder
Sets the initial delay between retries.
invalidCacheState(String) - Static method in exception io.github.dhruv1110.jcachex.exceptions.CacheOperationException
Creates an operation exception for cache state errors.
invalidKey(Object) - Static method in exception io.github.dhruv1110.jcachex.exceptions.CacheOperationException
Creates an operation exception for key validation failures.
invalidMaximumSize(long) - Static method in exception io.github.dhruv1110.jcachex.exceptions.CacheConfigurationException
Creates a configuration exception for invalid maximum size.
invalidMaximumWeight(long) - Static method in exception io.github.dhruv1110.jcachex.exceptions.CacheConfigurationException
Creates a configuration exception for invalid maximum weight.
invalidValue(Object) - Static method in exception io.github.dhruv1110.jcachex.exceptions.CacheOperationException
Creates an operation exception for value validation failures.
io.github.dhruv1110.jcachex - package io.github.dhruv1110.jcachex
 
io.github.dhruv1110.jcachex.eviction - package io.github.dhruv1110.jcachex.eviction
 
io.github.dhruv1110.jcachex.exceptions - package io.github.dhruv1110.jcachex.exceptions
 
io.github.dhruv1110.jcachex.resilience - package io.github.dhruv1110.jcachex.resilience
 
isExpired() - Method in class io.github.dhruv1110.jcachex.CacheEntry
 
isOverWeight() - Method in class io.github.dhruv1110.jcachex.eviction.WeightBasedEvictionStrategy
 
isRecordStats() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns whether statistics should be recorded for this cache.
isRetryable() - Method in exception io.github.dhruv1110.jcachex.exceptions.CacheException
Returns whether this operation can be retried.
isSoftValues() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns whether cache values should be stored using soft references.
isWeakKeys() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns whether cache keys should be stored using weak references.
isWeakValues() - Method in class io.github.dhruv1110.jcachex.CacheConfig
Returns whether cache values should be stored using weak references.

J

jitterFactor(double) - Method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy.Builder
Sets the jitter factor to randomize delays.

K

keys() - Method in interface io.github.dhruv1110.jcachex.Cache
Returns a view of all the keys in this cache.
keys() - Method in class io.github.dhruv1110.jcachex.DefaultCache
 

L

LFUEvictionStrategy<K,​V> - Class in io.github.dhruv1110.jcachex.eviction
Least Frequently Used (LFU) eviction strategy.
LFUEvictionStrategy() - Constructor for class io.github.dhruv1110.jcachex.eviction.LFUEvictionStrategy
 
loadCount() - Method in class io.github.dhruv1110.jcachex.CacheStats
Returns the number of times the cache loader was invoked.
loader(Function<K, V>) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Sets the function used to load values synchronously when not present in cache.
loadFailureCount() - Method in class io.github.dhruv1110.jcachex.CacheStats
Returns the number of failed cache load operations.
LOADING - io.github.dhruv1110.jcachex.exceptions.CacheException.ErrorType
Data loading errors
LRUEvictionStrategy<K,​V> - Class in io.github.dhruv1110.jcachex.eviction
Least Recently Used (LRU) eviction strategy implementation.
LRUEvictionStrategy() - Constructor for class io.github.dhruv1110.jcachex.eviction.LRUEvictionStrategy
 

M

maxAttempts(int) - Method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy.Builder
Sets the maximum number of retry attempts.
maxDelay(Duration) - Method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy.Builder
Sets the maximum delay between retries.
maximumSize(Long) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Sets the maximum number of entries the cache may contain.
maximumWeight(Long) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Sets the maximum total weight of entries the cache may contain.
missCount() - Method in class io.github.dhruv1110.jcachex.CacheStats
Returns the number of cache lookups that didn't find a cached value.
missingWeigher() - Static method in exception io.github.dhruv1110.jcachex.exceptions.CacheConfigurationException
Creates a configuration exception for missing weigher function.
missRate() - Method in class io.github.dhruv1110.jcachex.CacheStats
Returns the ratio of failed cache lookups to total requests.

N

newBuilder() - Static method in class io.github.dhruv1110.jcachex.CacheConfig
Creates a new builder instance for constructing cache configurations.
noOp() - Static method in interface io.github.dhruv1110.jcachex.CacheEventListener
Creates a new CacheEventListener that does nothing.

O

onClear() - Method in interface io.github.dhruv1110.jcachex.CacheEventListener
Called when the cache is cleared.
onEvict(K, V, EvictionReason) - Method in interface io.github.dhruv1110.jcachex.CacheEventListener
Called when a value is evicted from the cache.
onExpire(K, V) - Method in interface io.github.dhruv1110.jcachex.CacheEventListener
Called when a value expires from the cache.
onLoad(K, V) - Method in interface io.github.dhruv1110.jcachex.CacheEventListener
Called when a value is loaded into the cache.
onLoadError(K, Throwable) - Method in interface io.github.dhruv1110.jcachex.CacheEventListener
Called when a value fails to load into the cache.
onPut(K, V) - Method in interface io.github.dhruv1110.jcachex.CacheEventListener
Called when a value is added to the cache.
onRemove(K, V) - Method in interface io.github.dhruv1110.jcachex.CacheEventListener
Called when a value is removed from the cache.
OPERATION - io.github.dhruv1110.jcachex.exceptions.CacheException.ErrorType
Runtime operation errors

P

put(K, V) - Method in interface io.github.dhruv1110.jcachex.Cache
Associates the specified value with the specified key in this cache.
put(K, V) - Method in class io.github.dhruv1110.jcachex.DefaultCache
Associates the specified value with the specified key in this cache.
putAsync(K, V) - Method in interface io.github.dhruv1110.jcachex.Cache
Asynchronously associates the specified value with the specified key in this cache.
putAsync(K, V) - Method in class io.github.dhruv1110.jcachex.DefaultCache
 

R

recordEviction() - Method in class io.github.dhruv1110.jcachex.CacheStats
 
recordHit() - Method in class io.github.dhruv1110.jcachex.CacheStats
 
recordLoad(long) - Method in class io.github.dhruv1110.jcachex.CacheStats
 
recordLoadFailure() - Method in class io.github.dhruv1110.jcachex.CacheStats
 
recordMiss() - Method in class io.github.dhruv1110.jcachex.CacheStats
 
recordStats(boolean) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Sets whether statistics should be recorded for this cache.
refreshAfterWrite(Duration) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Sets the duration after which an entry should be automatically refreshed once the duration has elapsed after the entry's creation or last update.
remove(K) - Method in interface io.github.dhruv1110.jcachex.Cache
Removes the mapping for a key from this cache if it is present.
remove(K) - Method in class io.github.dhruv1110.jcachex.DefaultCache
 
remove(K) - Method in class io.github.dhruv1110.jcachex.eviction.CompositeEvictionStrategy
 
remove(K) - Method in interface io.github.dhruv1110.jcachex.eviction.EvictionStrategy
Removes an entry from the strategy's state.
remove(K) - Method in class io.github.dhruv1110.jcachex.eviction.FIFOEvictionStrategy
 
remove(K) - Method in class io.github.dhruv1110.jcachex.eviction.FILOEvictionStrategy
 
remove(K) - Method in class io.github.dhruv1110.jcachex.eviction.IdleTimeEvictionStrategy
 
remove(K) - Method in class io.github.dhruv1110.jcachex.eviction.LFUEvictionStrategy
 
remove(K) - Method in class io.github.dhruv1110.jcachex.eviction.LRUEvictionStrategy
 
remove(K) - Method in class io.github.dhruv1110.jcachex.eviction.WeightBasedEvictionStrategy
 
removeAsync(K) - Method in interface io.github.dhruv1110.jcachex.Cache
Asynchronously removes the mapping for a key from this cache if it is present.
removeAsync(K) - Method in class io.github.dhruv1110.jcachex.DefaultCache
 
reset() - Method in class io.github.dhruv1110.jcachex.CacheStats
 
retryOn(Predicate<Throwable>) - Method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy.Builder
Sets a predicate to determine which exceptions should trigger retries.
retryOnException(Class<? extends Throwable>...) - Method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy.Builder
Configures retry only for specific exception types.
RetryPolicy - Class in io.github.dhruv1110.jcachex.resilience
Configurable retry policy for cache operations.
RetryPolicy.Builder - Class in io.github.dhruv1110.jcachex.resilience
Builder class for creating retry policies.

S

selectEvictionCandidate(Map<K, CacheEntry<V>>) - Method in class io.github.dhruv1110.jcachex.eviction.CompositeEvictionStrategy
 
selectEvictionCandidate(Map<K, CacheEntry<V>>) - Method in interface io.github.dhruv1110.jcachex.eviction.EvictionStrategy
Selects a candidate for eviction from the given entries.
selectEvictionCandidate(Map<K, CacheEntry<V>>) - Method in class io.github.dhruv1110.jcachex.eviction.FIFOEvictionStrategy
 
selectEvictionCandidate(Map<K, CacheEntry<V>>) - Method in class io.github.dhruv1110.jcachex.eviction.FILOEvictionStrategy
 
selectEvictionCandidate(Map<K, CacheEntry<V>>) - Method in class io.github.dhruv1110.jcachex.eviction.IdleTimeEvictionStrategy
 
selectEvictionCandidate(Map<K, CacheEntry<V>>) - Method in class io.github.dhruv1110.jcachex.eviction.LFUEvictionStrategy
 
selectEvictionCandidate(Map<K, CacheEntry<V>>) - Method in class io.github.dhruv1110.jcachex.eviction.LRUEvictionStrategy
 
selectEvictionCandidate(Map<K, CacheEntry<V>>) - Method in class io.github.dhruv1110.jcachex.eviction.WeightBasedEvictionStrategy
 
serializationFailure(Object, Throwable) - Static method in exception io.github.dhruv1110.jcachex.exceptions.CacheOperationException
Creates an operation exception for serialization failures.
size() - Method in interface io.github.dhruv1110.jcachex.Cache
Returns the approximate number of entries in this cache.
size() - Method in class io.github.dhruv1110.jcachex.DefaultCache
 
SIZE - io.github.dhruv1110.jcachex.EvictionReason
The entry was evicted because the cache size limit was reached.
snapshot() - Method in class io.github.dhruv1110.jcachex.CacheStats
 
softValues(boolean) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Configures the cache to store values using soft references.
stats() - Method in interface io.github.dhruv1110.jcachex.Cache
Returns the cache statistics.
stats() - Method in class io.github.dhruv1110.jcachex.DefaultCache
 

T

TIMEOUT - io.github.dhruv1110.jcachex.exceptions.CacheException.ErrorType
Timeout or performance errors
toString() - Method in class io.github.dhruv1110.jcachex.CacheStats
 
toString() - Method in exception io.github.dhruv1110.jcachex.exceptions.CacheException
Returns a comprehensive string representation of this exception.
totalLoadTime() - Method in class io.github.dhruv1110.jcachex.CacheStats
Returns the total time spent loading values, in nanoseconds.

U

UNKNOWN - io.github.dhruv1110.jcachex.EvictionReason
The entry was evicted for an unknown reason.
UNKNOWN - io.github.dhruv1110.jcachex.exceptions.CacheException.ErrorType
Unknown or unclassified errors
update(K, CacheEntry<V>) - Method in class io.github.dhruv1110.jcachex.eviction.CompositeEvictionStrategy
 
update(K, CacheEntry<V>) - Method in interface io.github.dhruv1110.jcachex.eviction.EvictionStrategy
Updates the strategy's state when an entry is accessed or modified.
update(K, CacheEntry<V>) - Method in class io.github.dhruv1110.jcachex.eviction.FIFOEvictionStrategy
 
update(K, CacheEntry<V>) - Method in class io.github.dhruv1110.jcachex.eviction.FILOEvictionStrategy
 
update(K, CacheEntry<V>) - Method in class io.github.dhruv1110.jcachex.eviction.IdleTimeEvictionStrategy
 
update(K, CacheEntry<V>) - Method in class io.github.dhruv1110.jcachex.eviction.LFUEvictionStrategy
 
update(K, CacheEntry<V>) - Method in class io.github.dhruv1110.jcachex.eviction.LRUEvictionStrategy
 
update(K, CacheEntry<V>) - Method in class io.github.dhruv1110.jcachex.eviction.WeightBasedEvictionStrategy
 

V

valueOf(String) - Static method in enum io.github.dhruv1110.jcachex.EvictionReason
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.github.dhruv1110.jcachex.exceptions.CacheException.ErrorType
Returns the enum constant of this type with the specified name.
values() - Method in interface io.github.dhruv1110.jcachex.Cache
Returns a view of all the values in this cache.
values() - Method in class io.github.dhruv1110.jcachex.DefaultCache
 
values() - Static method in enum io.github.dhruv1110.jcachex.EvictionReason
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.github.dhruv1110.jcachex.exceptions.CacheException.ErrorType
Returns an array containing the constants of this enum type, in the order they are declared.

W

weakKeys(boolean) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Configures the cache to store keys using weak references.
weakValues(boolean) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Configures the cache to store values using weak references.
weigher(BiFunction<K, V, Long>) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
Sets the weigher function used to calculate entry weights.
WEIGHT - io.github.dhruv1110.jcachex.EvictionReason
The entry was evicted because the cache weight limit was reached.
WeightBasedEvictionStrategy<K,​V> - Class in io.github.dhruv1110.jcachex.eviction
Weight-based eviction strategy.
WeightBasedEvictionStrategy(long) - Constructor for class io.github.dhruv1110.jcachex.eviction.WeightBasedEvictionStrategy
 
A B C D E F G H I J K L M N O P R S T U V W 
All Classes All Packages