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
All Classes All Packages
All Classes All Packages
A
- AccessPattern(long, long, double, boolean) - Constructor for class io.github.dhruv1110.jcachex.warming.WarmingContext.AccessPattern
- adaptive() - Static method in class io.github.dhruv1110.jcachex.CacheFactory
-
Creates an adaptive cache builder that can switch between local and distributed based on environment or runtime conditions.
- AdaptiveCacheBuilder() - Constructor for class io.github.dhruv1110.jcachex.CacheFactory.AdaptiveCacheBuilder
- addListener(CacheEventListener<K, V>) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
-
Adds an event listener to receive notifications about cache operations.
- addNode(String) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- addNode(String) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Adds a new node to the cluster.
- 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.
- AVRO - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.SerializationType
B
- backoffMultiplier(double) - Method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy.Builder
-
Sets the backoff multiplier for exponential backoff.
- broadcast(Collection<String>, NetworkProtocol.CacheOperation) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultNetworkProtocol
- broadcast(Collection<String>, NetworkProtocol.CacheOperation) - Method in interface io.github.dhruv1110.jcachex.distributed.NetworkProtocol
-
Broadcasts a cache operation to multiple nodes.
- bufferSize(int) - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.ProtocolBuilder
- 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.distributed.DefaultDistributedCache.Builder
- build() - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache.Builder
- build() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.ProtocolBuilder
- build() - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Builder
- build() - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker.Builder
- build() - Method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy.Builder
-
Builds the retry policy.
- build() - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult.Builder
- builder() - Static method in class io.github.dhruv1110.jcachex.CacheConfig
-
Creates a new builder instance for constructing cache configurations.
- builder() - Static method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Creates a new distributed cache builder.
- builder() - Static method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry
-
Creates a new metrics registry builder.
- builder() - Static method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker
-
Creates a new circuit breaker builder.
- builder() - Static method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy
-
Creates a new retry policy builder.
- builder() - Static method in class io.github.dhruv1110.jcachex.warming.WarmingResult
-
Creates a new builder for WarmingResult.
- Builder() - Constructor for class io.github.dhruv1110.jcachex.CacheConfig.Builder
- Builder() - Constructor for class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache.Builder
- Builder() - Constructor for class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Builder
- Builder() - Constructor for class io.github.dhruv1110.jcachex.resilience.CircuitBreaker.Builder
- Builder() - Constructor for class io.github.dhruv1110.jcachex.resilience.RetryPolicy.Builder
- Builder() - Constructor for class io.github.dhruv1110.jcachex.warming.WarmingResult.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(CacheConfig<K, V>) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache.Builder
- 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.
- CacheFactory - Class in io.github.dhruv1110.jcachex
-
Unified factory for creating both local and distributed caches.
- CacheFactory() - Constructor for class io.github.dhruv1110.jcachex.CacheFactory
- CacheFactory.AdaptiveCacheBuilder<K,V> - Class in io.github.dhruv1110.jcachex
-
Builder for adaptive caches that can switch between local and distributed based on environment conditions.
- CacheFactory.DistributedCacheBuilder<K,V> - Class in io.github.dhruv1110.jcachex
-
Builder for distributed caches with all advanced features.
- CacheFactory.LocalCacheBuilder<K,V> - Class in io.github.dhruv1110.jcachex
-
Builder for local caches with production-ready features.
- CacheOperation(String, String) - Constructor for class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.CacheOperation
- 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
- CacheWarmingStrategy<K,V> - Interface in io.github.dhruv1110.jcachex.warming
-
Interface for cache warming strategies.
- CacheWarmingStrategy.WarmingPriority - Enum in io.github.dhruv1110.jcachex.warming
-
Warming priority levels.
- CAPACITY - io.github.dhruv1110.jcachex.exceptions.CacheException.ErrorType
-
Resource capacity errors
- checkAlerts() - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry
-
Checks all registered alerts.
- circuitBreaker(CircuitBreaker) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- circuitBreaker(CircuitBreaker) - Method in class io.github.dhruv1110.jcachex.CacheFactory.LocalCacheBuilder
- CircuitBreaker - Class in io.github.dhruv1110.jcachex.resilience
-
Circuit breaker implementation for cache operations.
- CircuitBreaker.Builder - Class in io.github.dhruv1110.jcachex.resilience
-
Builder for CircuitBreaker.
- CircuitBreaker.CircuitBreakerException - Exception in io.github.dhruv1110.jcachex.resilience
-
Exception thrown when circuit breaker is open.
- CircuitBreaker.CircuitBreakerMetrics - Class in io.github.dhruv1110.jcachex.resilience
-
Circuit breaker metrics container.
- CircuitBreaker.State - Enum in io.github.dhruv1110.jcachex.resilience
-
Circuit breaker states.
- CircuitBreakerException(String) - Constructor for exception io.github.dhruv1110.jcachex.resilience.CircuitBreaker.CircuitBreakerException
- CircuitBreakerMetrics(CircuitBreaker.State, int, int, long, long, long, double) - Constructor for class io.github.dhruv1110.jcachex.resilience.CircuitBreaker.CircuitBreakerMetrics
- 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.distributed.DefaultDistributedCache
- 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
- CLEAR - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationType
- 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
- clearAsync() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- CLEARED - io.github.dhruv1110.jcachex.EvictionReason
-
The entry was evicted because the cache was cleared.
- clearGlobally() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- clearGlobally() - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Clears all entries across all nodes in the cluster.
- close() - Method in class io.github.dhruv1110.jcachex.DefaultCache
-
Closes this cache and releases any resources associated with it.
- close() - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker
-
Manually closes the circuit breaker.
- CLOSED - io.github.dhruv1110.jcachex.resilience.CircuitBreaker.State
- clusterName(String) - Method in class io.github.dhruv1110.jcachex.CacheFactory.AdaptiveCacheBuilder
- clusterName(String) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- clusterName(String) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache.Builder
- clusterName(String) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache.Builder
- ClusterTopology(String, Set<DistributedCache.NodeInfo>, int, long) - Constructor for class io.github.dhruv1110.jcachex.distributed.DistributedCache.ClusterTopology
- 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
- compression(NetworkProtocol.CompressionType) - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.ProtocolBuilder
- compressionEnabled(boolean) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache.Builder
- compressionEnabled(boolean) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache.Builder
- 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
- config() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- 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.
- connectionTimeout(long) - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.ProtocolBuilder
- consistencyLevel(DistributedCache.ConsistencyLevel) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- consistencyLevel(DistributedCache.ConsistencyLevel) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache.Builder
- consistencyLevel(DistributedCache.ConsistencyLevel) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache.Builder
- 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
- containsKey(K) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- count() - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Counter
- count() - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Histogram
- count() - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Timer
- counter(String) - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry
-
Returns a counter metric.
- Counter() - Constructor for class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Counter
- create() - Method in class io.github.dhruv1110.jcachex.CacheFactory.AdaptiveCacheBuilder
- create() - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- create() - Method in class io.github.dhruv1110.jcachex.CacheFactory.LocalCacheBuilder
- CRITICAL - io.github.dhruv1110.jcachex.warming.CacheWarmingStrategy.WarmingPriority
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.
- DefaultDistributedCache<K,V> - Class in io.github.dhruv1110.jcachex.distributed
-
Default implementation of DistributedCache interface.
- DefaultDistributedCache.Builder<K,V> - Class in io.github.dhruv1110.jcachex.distributed
- DefaultNetworkProtocol - Class in io.github.dhruv1110.jcachex.distributed
-
Default implementation of NetworkProtocol.
- DefaultNetworkProtocol(NetworkProtocol.ProtocolBuilder) - Constructor for class io.github.dhruv1110.jcachex.distributed.DefaultNetworkProtocol
- defaultPolicy() - Static method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy
-
Creates a default retry policy with reasonable defaults.
- DEGRADED - io.github.dhruv1110.jcachex.distributed.DistributedCache.NodeStatus
- 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.
- distributed() - Static method in class io.github.dhruv1110.jcachex.CacheFactory
-
Creates a distributed cache builder.
- DistributedCache<K,V> - Interface in io.github.dhruv1110.jcachex.distributed
-
Distributed cache interface that extends the base Cache interface with multi-node capabilities.
- DistributedCache.Builder<K,V> - Interface in io.github.dhruv1110.jcachex.distributed
-
Builder interface for creating distributed caches.
- DistributedCache.ClusterTopology - Class in io.github.dhruv1110.jcachex.distributed
-
Cluster topology information.
- DistributedCache.ConsistencyLevel - Enum in io.github.dhruv1110.jcachex.distributed
-
Consistency levels for distributed operations.
- DistributedCache.DistributedMetrics - Class in io.github.dhruv1110.jcachex.distributed
-
Metrics specific to distributed cache operations.
- DistributedCache.NodeInfo - Class in io.github.dhruv1110.jcachex.distributed
-
Information about a cluster node.
- DistributedCache.NodeStatus - Enum in io.github.dhruv1110.jcachex.distributed
-
Node health status.
- DistributedCacheBuilder() - Constructor for class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- DistributedMetrics(long, long, double, long, long, Map<String, Long>) - Constructor for class io.github.dhruv1110.jcachex.distributed.DistributedCache.DistributedMetrics
- distributedWhen(Function<Map<String, String>, Boolean>) - Method in class io.github.dhruv1110.jcachex.CacheFactory.AdaptiveCacheBuilder
- duration(Duration) - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult.Builder
E
- empty() - Static method in class io.github.dhruv1110.jcachex.CacheStats
- enableAutoDiscovery(boolean) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache.Builder
- enableAutoDiscovery(boolean) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache.Builder
- enableObservability(boolean) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- enableObservability(boolean) - Method in class io.github.dhruv1110.jcachex.CacheFactory.LocalCacheBuilder
- enableReadRepair(boolean) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache.Builder
- enableReadRepair(boolean) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache.Builder
- enableResilience(boolean) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- enableResilience(boolean) - Method in class io.github.dhruv1110.jcachex.CacheFactory.LocalCacheBuilder
- enableStats(boolean) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- enableStats(boolean) - Method in class io.github.dhruv1110.jcachex.CacheFactory.LocalCacheBuilder
- enableWarming(boolean) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- enableWarming(boolean) - Method in class io.github.dhruv1110.jcachex.CacheFactory.LocalCacheBuilder
- encryption(boolean) - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.ProtocolBuilder
- encryptionEnabled(boolean) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache.Builder
- encryptionEnabled(boolean) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache.Builder
- endTime(Instant) - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult.Builder
- 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
- entries() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- equals(Object) - Method in class io.github.dhruv1110.jcachex.CacheStats
- EVENTUAL - io.github.dhruv1110.jcachex.distributed.DistributedCache.ConsistencyLevel
-
Eventual consistency - operation completes locally, replicates asynchronously.
- 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.CircuitBreaker
-
Executes the given runnable with circuit breaker protection.
- 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.CircuitBreaker
-
Executes the given supplier with circuit breaker protection.
- 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.
- expireAfterAccess(Duration) - Method in class io.github.dhruv1110.jcachex.CacheFactory.AdaptiveCacheBuilder
- expireAfterAccess(Duration) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- expireAfterAccess(Duration) - Method in class io.github.dhruv1110.jcachex.CacheFactory.LocalCacheBuilder
- 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.
- expireAfterWrite(Duration) - Method in class io.github.dhruv1110.jcachex.CacheFactory.AdaptiveCacheBuilder
- expireAfterWrite(Duration) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- expireAfterWrite(Duration) - Method in class io.github.dhruv1110.jcachex.CacheFactory.LocalCacheBuilder
- 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
- FAILED - io.github.dhruv1110.jcachex.distributed.DistributedCache.NodeStatus
- failure(String, String) - Static method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationResponse
- failure(String, Duration) - Static method in class io.github.dhruv1110.jcachex.warming.WarmingResult
-
Creates a failed warming result.
- failureCount(int) - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult.Builder
- failureReason(String) - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult.Builder
- failureThreshold(int) - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker.Builder
- 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
- Gauge(Supplier<Double>) - Constructor for class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Gauge
- 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.
- get(K) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- GET - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationType
- getAccessCount() - Method in class io.github.dhruv1110.jcachex.CacheEntry
- getAccessCount() - Method in class io.github.dhruv1110.jcachex.warming.WarmingContext.AccessPattern
- getAccessFrequency() - Method in class io.github.dhruv1110.jcachex.warming.WarmingContext.AccessPattern
- getAccessPatterns() - Method in interface io.github.dhruv1110.jcachex.warming.WarmingContext
-
Returns access patterns for cache keys.
- getAddress() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.NodeInfo
- 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
- getAsync(K) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- getAsyncLoader() - Method in class io.github.dhruv1110.jcachex.CacheConfig
-
Returns the function used to load values asynchronously when not present in cache.
- getAverageLatency() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.NetworkStats
- getAverageNetworkLatency() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.DistributedMetrics
- getBytesReceived() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.NetworkStats
- getBytesTransmitted() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.NetworkStats
- getCache() - Method in interface io.github.dhruv1110.jcachex.warming.WarmingContext
-
Returns the cache to be warmed.
- getCacheStats(String) - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry
-
Returns cache statistics for a registered cache.
- getClusterName() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.ClusterTopology
- getClusterTopology() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- getClusterTopology() - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Returns the current cluster topology.
- getConcurrencyLevel() - Method in class io.github.dhruv1110.jcachex.CacheConfig
-
Returns the concurrency level for the cache's internal data structure.
- getConflictResolutions() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.DistributedMetrics
- getConnectionFailures() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.NetworkStats
- getConsistencyLevel() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- getConsistencyLevel() - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Returns the consistency level used by this cache.
- getConsistencyLevel() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.GetOperation
- getConsistencyLevel() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.PutOperation
- getCreationTime() - Method in class io.github.dhruv1110.jcachex.CacheEntry
- getCurrentStats() - Method in interface io.github.dhruv1110.jcachex.warming.WarmingContext
-
Returns the current cache statistics.
- 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.
- getDistributedMetrics() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- getDistributedMetrics() - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Returns detailed metrics about distributed operations.
- getDuration() - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult
-
Returns the total duration of the warming operation.
- getEndTime() - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult
-
Returns the end time of the warming operation.
- getErrorCode() - Method in exception io.github.dhruv1110.jcachex.exceptions.CacheException
-
Returns the specific error code, if available.
- getErrorMessage() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationResponse
- 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.
- getFailureCount() - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker.CircuitBreakerMetrics
- getFailureCount() - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker
-
Returns the current failure count.
- getFailureCount() - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult
-
Returns the number of failed warming attempts.
- getFailureRate() - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker.CircuitBreakerMetrics
- getFailureRate() - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker
-
Returns the failure rate as a percentage.
- getFailureReason() - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult
-
Returns the failure reason if warming failed.
- getFrequentlyAccessedKeys() - Method in interface io.github.dhruv1110.jcachex.warming.WarmingContext
-
Returns keys that are frequently accessed.
- getHealthyNodeCount() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.ClusterTopology
- 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.
- getKey() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.GetOperation
- getKey() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.PutOperation
- getKeys() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.InvalidateOperation
- getLastAccessTime() - Method in class io.github.dhruv1110.jcachex.CacheEntry
- getLastAccessTime() - Method in class io.github.dhruv1110.jcachex.warming.WarmingContext.AccessPattern
- getLastSeen() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.NodeInfo
- getLevel() - Method in enum io.github.dhruv1110.jcachex.warming.CacheWarmingStrategy.WarmingPriority
- 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.
- getMessagesReceived() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.NetworkStats
- getMessagesSent() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.NetworkStats
- getMetrics() - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker
-
Returns comprehensive circuit breaker metrics.
- getMissCount() - Method in class io.github.dhruv1110.jcachex.CacheStats
- getNetworkFailures() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.DistributedMetrics
- getNetworkRequests() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.DistributedMetrics
- getNetworkStats() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultNetworkProtocol
- getNetworkStats() - Method in interface io.github.dhruv1110.jcachex.distributed.NetworkProtocol
-
Returns network statistics.
- getNetworkSuccessRate() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.DistributedMetrics
- getNodeId() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.NodeInfo
- getNodes() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.ClusterTopology
- getNodeStatuses() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- getNodeStatuses() - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Returns the status of each node in the cluster.
- GetOperation(String, String, Object, DistributedCache.ConsistencyLevel) - Constructor for class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.GetOperation
- getOperationId() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.CacheOperation
- getOperationId() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationResponse
- getPartitionCount() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.ClusterTopology
- getPartitions() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.NodeInfo
- getPerNodeLatencies() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.DistributedMetrics
- getPerNodeStats() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- getPerNodeStats() - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Returns cache statistics for each node in the cluster.
- 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.
- getReplicationFactor() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- getReplicationFactor() - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Returns the replication factor for this cache.
- getReplicationLag() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.DistributedMetrics
- getResult() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationResponse
- getSourceNodeId() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.CacheOperation
- getStartTime() - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult
-
Returns the start time of the warming operation.
- getState() - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker.CircuitBreakerMetrics
- getState() - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker
-
Returns the current state of the circuit breaker.
- getStatus() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.NodeInfo
- getSuccessCount() - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker.CircuitBreakerMetrics
- getSuccessCount() - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker
-
Returns the current success count (used in half-open state).
- getSuccessCount() - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult
-
Returns the number of successfully warmed entries.
- getThroughput() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.NetworkStats
- getTimestamp() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.CacheOperation
- getTimestamp() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationResponse
- getTotalFailures() - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker.CircuitBreakerMetrics
- getTotalLoadTime() - Method in class io.github.dhruv1110.jcachex.CacheStats
- getTotalRequests() - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker.CircuitBreakerMetrics
- getTotalSuccesses() - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker.CircuitBreakerMetrics
- getType() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.CacheOperation
- getType() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.GetOperation
- getType() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.InvalidateOperation
- getType() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.PutOperation
- getValue() - Method in class io.github.dhruv1110.jcachex.CacheEntry
- getValue() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.PutOperation
- getVersion() - Method in class io.github.dhruv1110.jcachex.distributed.DistributedCache.ClusterTopology
- getWarmingPriority(K) - Method in interface io.github.dhruv1110.jcachex.warming.CacheWarmingStrategy
-
Returns the priority for warming a specific key.
- getWarnings() - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult
-
Returns any warnings generated during warming.
- 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
- getWithConsistency(K, DistributedCache.ConsistencyLevel) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- getWithConsistency(K, DistributedCache.ConsistencyLevel) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Gets a value from the cache with the specified consistency level.
- gossipInterval(Duration) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache.Builder
- gossipInterval(Duration) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache.Builder
- GZIP - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.CompressionType
H
- HALF_OPEN - io.github.dhruv1110.jcachex.resilience.CircuitBreaker.State
- handle(NetworkProtocol.CacheOperation) - Method in interface io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationHandler
- hashCode() - Method in class io.github.dhruv1110.jcachex.CacheStats
- HEALTHY - io.github.dhruv1110.jcachex.distributed.DistributedCache.NodeStatus
- HEARTBEAT - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationType
- HIGH - io.github.dhruv1110.jcachex.warming.CacheWarmingStrategy.WarmingPriority
- histogram(String) - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry
-
Returns a histogram metric.
- Histogram() - Constructor for class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Histogram
- 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.
- http() - Static method in interface io.github.dhruv1110.jcachex.distributed.NetworkProtocol
-
Creates an HTTP protocol builder.
- HTTP - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.ProtocolType
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
- increment() - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Counter
- increment(long) - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Counter
- 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.
- INVALIDATE - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationType
- invalidateGlobally(Collection<K>) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- invalidateGlobally(Collection<K>) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Invalidates multiple keys across all nodes in the cluster.
- invalidateGlobally(K) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- invalidateGlobally(K) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Invalidates a key across all nodes in the cluster.
- InvalidateOperation(String, String, Collection<Object>) - Constructor for class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.InvalidateOperation
- 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.distributed - package io.github.dhruv1110.jcachex.distributed
- 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.observability - package io.github.dhruv1110.jcachex.observability
- io.github.dhruv1110.jcachex.resilience - package io.github.dhruv1110.jcachex.resilience
- io.github.dhruv1110.jcachex.warming - package io.github.dhruv1110.jcachex.warming
- isExpired() - Method in class io.github.dhruv1110.jcachex.CacheEntry
- isHotSpot() - Method in class io.github.dhruv1110.jcachex.warming.WarmingContext.AccessPattern
- isOverWeight() - Method in class io.github.dhruv1110.jcachex.eviction.WeightBasedEvictionStrategy
- isReadRepairEnabled() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- isReadRepairEnabled() - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Returns whether read repair is enabled.
- 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.
- isSuccess() - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationResponse
- isSuccess() - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult
-
Returns true if the warming operation was successful.
- 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
- JAVA - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.SerializationType
- jitterFactor(double) - Method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy.Builder
-
Sets the jitter factor to randomize delays.
- JSON - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.SerializationType
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
- keys() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- KRYO - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.SerializationType
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.
- loader(Function<K, V>) - Method in class io.github.dhruv1110.jcachex.CacheFactory.AdaptiveCacheBuilder
- loader(Function<K, V>) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- loader(Function<K, V>) - Method in class io.github.dhruv1110.jcachex.CacheFactory.LocalCacheBuilder
- 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
- local() - Static method in class io.github.dhruv1110.jcachex.CacheFactory
-
Creates a local cache builder.
- LocalCacheBuilder() - Constructor for class io.github.dhruv1110.jcachex.CacheFactory.LocalCacheBuilder
- LOW - io.github.dhruv1110.jcachex.warming.CacheWarmingStrategy.WarmingPriority
- 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
- LZ4 - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.CompressionType
M
- maxAttempts(int) - Method in class io.github.dhruv1110.jcachex.resilience.RetryPolicy.Builder
-
Sets the maximum number of retry attempts.
- maxConnections(int) - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.ProtocolBuilder
- 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.
- maximumSize(Long) - Method in class io.github.dhruv1110.jcachex.CacheFactory.AdaptiveCacheBuilder
- maximumSize(Long) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- maximumSize(Long) - Method in class io.github.dhruv1110.jcachex.CacheFactory.LocalCacheBuilder
- maximumWeight(Long) - Method in class io.github.dhruv1110.jcachex.CacheConfig.Builder
-
Sets the maximum total weight of entries the cache may contain.
- maxReconnectAttempts(int) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache.Builder
- maxReconnectAttempts(int) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache.Builder
- mean() - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Histogram
- mean() - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Timer
- MEDIUM - io.github.dhruv1110.jcachex.warming.CacheWarmingStrategy.WarmingPriority
- metricsRegistry(MetricsRegistry) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- metricsRegistry(MetricsRegistry) - Method in class io.github.dhruv1110.jcachex.CacheFactory.LocalCacheBuilder
- MetricsRegistry - Class in io.github.dhruv1110.jcachex.observability
-
Central registry for cache metrics and observability.
- MetricsRegistry.Builder - Class in io.github.dhruv1110.jcachex.observability
-
Builder for MetricsRegistry.
- MetricsRegistry.Counter - Class in io.github.dhruv1110.jcachex.observability
-
Counter metric implementation.
- MetricsRegistry.Gauge - Class in io.github.dhruv1110.jcachex.observability
-
Gauge metric implementation.
- MetricsRegistry.Histogram - Class in io.github.dhruv1110.jcachex.observability
-
Histogram metric implementation.
- MetricsRegistry.Timer - Class in io.github.dhruv1110.jcachex.observability
-
Timer metric implementation.
- 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.
- MONOTONIC_READ - io.github.dhruv1110.jcachex.distributed.DistributedCache.ConsistencyLevel
-
Monotonic read consistency - once a value is read, subsequent reads return the same or a newer value.
N
- name(String) - Method in class io.github.dhruv1110.jcachex.CacheFactory.AdaptiveCacheBuilder
- name(String) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- name(String) - Method in class io.github.dhruv1110.jcachex.CacheFactory.LocalCacheBuilder
- NetworkProtocol - Interface in io.github.dhruv1110.jcachex.distributed
-
Network protocol abstraction for distributed cache communication.
- NetworkProtocol.CacheOperation - Class in io.github.dhruv1110.jcachex.distributed
-
Base class for cache operations.
- NetworkProtocol.CompressionType - Enum in io.github.dhruv1110.jcachex.distributed
-
Compression algorithms supported.
- NetworkProtocol.GetOperation - Class in io.github.dhruv1110.jcachex.distributed
-
Get operation for distributed cache.
- NetworkProtocol.InvalidateOperation - Class in io.github.dhruv1110.jcachex.distributed
-
Invalidate operation for distributed cache.
- NetworkProtocol.NetworkStats - Class in io.github.dhruv1110.jcachex.distributed
-
Network protocol statistics.
- NetworkProtocol.OperationHandler - Interface in io.github.dhruv1110.jcachex.distributed
-
Handler for incoming cache operations.
- NetworkProtocol.OperationResponse - Class in io.github.dhruv1110.jcachex.distributed
-
Response to a cache operation.
- NetworkProtocol.OperationType - Enum in io.github.dhruv1110.jcachex.distributed
-
Types of cache operations.
- NetworkProtocol.ProtocolBuilder - Class in io.github.dhruv1110.jcachex.distributed
-
Builder for network protocols.
- NetworkProtocol.ProtocolType - Enum in io.github.dhruv1110.jcachex.distributed
-
Protocol types supported.
- NetworkProtocol.PutOperation - Class in io.github.dhruv1110.jcachex.distributed
-
Put operation for distributed cache.
- NetworkProtocol.SerializationType - Enum in io.github.dhruv1110.jcachex.distributed
-
Serialization formats supported.
- NetworkStats(long, long, long, long, double, long) - Constructor for class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.NetworkStats
- networkTimeout(Duration) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache.Builder
- networkTimeout(Duration) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache.Builder
- newBuilder() - Static method in class io.github.dhruv1110.jcachex.CacheConfig
-
Creates a new builder instance for constructing cache configurations.
- NodeInfo(String, String, DistributedCache.NodeStatus, long, Set<Integer>) - Constructor for class io.github.dhruv1110.jcachex.distributed.DistributedCache.NodeInfo
- nodes(String...) - Method in class io.github.dhruv1110.jcachex.CacheFactory.AdaptiveCacheBuilder
- nodes(String...) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- nodes(String...) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache.Builder
- nodes(String...) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache.Builder
- nodes(Collection<String>) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- nodes(Collection<String>) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache.Builder
- nodes(Collection<String>) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache.Builder
- NONE - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.CompressionType
- 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.
- open() - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker
-
Manually opens the circuit breaker.
- OPEN - io.github.dhruv1110.jcachex.resilience.CircuitBreaker.State
- OPERATION - io.github.dhruv1110.jcachex.exceptions.CacheException.ErrorType
-
Runtime operation errors
- OperationResponse(String, boolean, Object, String) - Constructor for class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationResponse
P
- partitionCount(int) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache.Builder
- partitionCount(int) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache.Builder
- port(int) - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.ProtocolBuilder
- PROTOBUF - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.SerializationType
- ProtocolBuilder(NetworkProtocol.ProtocolType) - Constructor for class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.ProtocolBuilder
- 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.
- put(K, V) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- PUT - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationType
- 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
- putAsync(K, V) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- PutOperation(String, String, Object, Object, DistributedCache.ConsistencyLevel) - Constructor for class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.PutOperation
- putWithConsistency(K, V, DistributedCache.ConsistencyLevel) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- putWithConsistency(K, V, DistributedCache.ConsistencyLevel) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Puts a value in the cache with the specified consistency level.
R
- rebalance() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- rebalance() - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Forces a manual rebalancing of the cache across nodes.
- record(double) - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Histogram
- record(Duration) - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Timer
- 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.
- recoveryTimeout(Duration) - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker.Builder
- 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.
- registerAlert(String, Supplier<Boolean>) - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry
-
Registers an alert condition.
- registerCache(String, CacheStats) - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry
-
Registers a cache for monitoring.
- registerGauge(String, Supplier<Double>) - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry
-
Returns a gauge metric.
- registerHandler(NetworkProtocol.OperationHandler) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultNetworkProtocol
- registerHandler(NetworkProtocol.OperationHandler) - Method in interface io.github.dhruv1110.jcachex.distributed.NetworkProtocol
-
Registers a handler for incoming cache operations.
- 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.distributed.DefaultDistributedCache
- 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
- REMOVE - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationType
- 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
- removeAsync(K) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- removeNode(String) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- removeNode(String) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Removes a node from the cluster.
- replicationFactor(int) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- replicationFactor(int) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache.Builder
- replicationFactor(int) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache.Builder
- reset() - Method in class io.github.dhruv1110.jcachex.CacheStats
- reset() - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker
-
Resets all circuit breaker statistics.
- 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
- send(String, NetworkProtocol.CacheOperation) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultNetworkProtocol
- send(String, NetworkProtocol.CacheOperation) - Method in interface io.github.dhruv1110.jcachex.distributed.NetworkProtocol
-
Sends a cache operation to the specified node.
- serialization(NetworkProtocol.SerializationType) - Method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.ProtocolBuilder
- serializationFailure(Object, Throwable) - Static method in exception io.github.dhruv1110.jcachex.exceptions.CacheOperationException
-
Creates an operation exception for serialization failures.
- SESSION - io.github.dhruv1110.jcachex.distributed.DistributedCache.ConsistencyLevel
-
Session consistency - guarantees consistency within the same session/thread.
- setReadRepairEnabled(boolean) - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- setReadRepairEnabled(boolean) - Method in interface io.github.dhruv1110.jcachex.distributed.DistributedCache
-
Enables or disables read repair for this cache.
- shouldWarm(K) - Method in interface io.github.dhruv1110.jcachex.warming.WarmingContext
-
Checks if a key should be warmed based on context.
- 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() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- SIZE - io.github.dhruv1110.jcachex.EvictionReason
-
The entry was evicted because the cache size limit was reached.
- SNAPPY - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.CompressionType
- 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.
- start() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultNetworkProtocol
- start() - Method in interface io.github.dhruv1110.jcachex.distributed.NetworkProtocol
-
Starts the network protocol.
- startScheduledWarming(WarmingContext<K, V>, Function<K, V>, ScheduledExecutorService) - Method in interface io.github.dhruv1110.jcachex.warming.CacheWarmingStrategy
-
Starts scheduled warming if supported by the strategy.
- startTime(Instant) - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult.Builder
- stats() - Method in interface io.github.dhruv1110.jcachex.Cache
-
Returns the cache statistics.
- stats() - Method in class io.github.dhruv1110.jcachex.DefaultCache
- stats() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- stop() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultNetworkProtocol
- stop() - Method in interface io.github.dhruv1110.jcachex.distributed.NetworkProtocol
-
Stops the network protocol.
- stopWarming() - Method in interface io.github.dhruv1110.jcachex.warming.CacheWarmingStrategy
-
Stops any ongoing warming process.
- STRONG - io.github.dhruv1110.jcachex.distributed.DistributedCache.ConsistencyLevel
-
Strong consistency - all nodes must agree before operation completes.
- success(boolean) - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult.Builder
- success(int, Duration) - Static method in class io.github.dhruv1110.jcachex.warming.WarmingResult
-
Creates a successful warming result.
- success(String, Object) - Static method in class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationResponse
- successCount(int) - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult.Builder
- successThreshold(int) - Method in class io.github.dhruv1110.jcachex.resilience.CircuitBreaker.Builder
- supportsContinuousWarming() - Method in interface io.github.dhruv1110.jcachex.warming.CacheWarmingStrategy
-
Indicates if this strategy supports continuous warming.
T
- tcp() - Static method in interface io.github.dhruv1110.jcachex.distributed.NetworkProtocol
-
Creates a TCP protocol builder.
- TCP - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.ProtocolType
- TIMEOUT - io.github.dhruv1110.jcachex.exceptions.CacheException.ErrorType
-
Timeout or performance errors
- timer(String) - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry
-
Returns a timer metric.
- Timer() - Constructor for class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Timer
- TOPOLOGY_UPDATE - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationType
- 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.
- totalTime() - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Timer
U
- udp() - Static method in interface io.github.dhruv1110.jcachex.distributed.NetworkProtocol
-
Creates a UDP protocol builder.
- UDP - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.ProtocolType
- 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
- UNREACHABLE - io.github.dhruv1110.jcachex.distributed.DistributedCache.NodeStatus
- 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
- value() - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Gauge
- valueOf(String) - Static method in enum io.github.dhruv1110.jcachex.distributed.DistributedCache.ConsistencyLevel
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.github.dhruv1110.jcachex.distributed.DistributedCache.NodeStatus
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.github.dhruv1110.jcachex.distributed.NetworkProtocol.CompressionType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.github.dhruv1110.jcachex.distributed.NetworkProtocol.OperationType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.github.dhruv1110.jcachex.distributed.NetworkProtocol.ProtocolType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.github.dhruv1110.jcachex.distributed.NetworkProtocol.SerializationType
-
Returns the enum constant of this type with the specified name.
- 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.
- valueOf(String) - Static method in enum io.github.dhruv1110.jcachex.resilience.CircuitBreaker.State
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.github.dhruv1110.jcachex.warming.CacheWarmingStrategy.WarmingPriority
-
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() - Method in class io.github.dhruv1110.jcachex.distributed.DefaultDistributedCache
- values() - Static method in enum io.github.dhruv1110.jcachex.distributed.DistributedCache.ConsistencyLevel
-
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.distributed.DistributedCache.NodeStatus
-
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.distributed.NetworkProtocol.CompressionType
-
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.distributed.NetworkProtocol.OperationType
-
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.distributed.NetworkProtocol.ProtocolType
-
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.distributed.NetworkProtocol.SerializationType
-
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.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.
- values() - Static method in enum io.github.dhruv1110.jcachex.resilience.CircuitBreaker.State
-
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.warming.CacheWarmingStrategy.WarmingPriority
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- warm(K, V) - Method in interface io.github.dhruv1110.jcachex.warming.WarmingContext
-
Warms a single key-value pair.
- warmBulk(Map<K, V>) - Method in interface io.github.dhruv1110.jcachex.warming.WarmingContext
-
Warms multiple key-value pairs.
- warmCache(WarmingContext<K, V>, Function<K, V>) - Method in interface io.github.dhruv1110.jcachex.warming.CacheWarmingStrategy
-
Initiates cache warming process.
- WarmingContext<K,V> - Interface in io.github.dhruv1110.jcachex.warming
-
Context for cache warming operations.
- WarmingContext.AccessPattern - Class in io.github.dhruv1110.jcachex.warming
-
Represents access patterns for a cache key.
- WarmingResult - Class in io.github.dhruv1110.jcachex.warming
-
Result of a cache warming operation.
- WarmingResult.Builder - Class in io.github.dhruv1110.jcachex.warming
-
Builder for WarmingResult.
- warmingStrategy(CacheWarmingStrategy<K, V>) - Method in class io.github.dhruv1110.jcachex.CacheFactory.DistributedCacheBuilder
- warmingStrategy(CacheWarmingStrategy<K, V>) - Method in class io.github.dhruv1110.jcachex.CacheFactory.LocalCacheBuilder
- warnings(List<String>) - Method in class io.github.dhruv1110.jcachex.warming.WarmingResult.Builder
- 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.
- websocket() - Static method in interface io.github.dhruv1110.jcachex.distributed.NetworkProtocol
-
Creates a WebSocket protocol builder.
- WEBSOCKET - io.github.dhruv1110.jcachex.distributed.NetworkProtocol.ProtocolType
- 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
- withDataDog(Object) - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Builder
- withMicrometer(Object) - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Builder
- withPrometheus(Object) - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Builder
- withTag(String, String) - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Builder
- withTags(String...) - Method in class io.github.dhruv1110.jcachex.observability.MetricsRegistry.Builder
All Classes All Packages