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

A

abortOnException(Throwable) - Method in interface org.cache2k.storage.CacheStorage.MultiThreadedContext
If an exception cannot be handled, this method aborts the operation and propagates the exception to the operation client.
add(Future<V>) - Method in class org.cache2k.impl.threading.Futures.WaitForAllFuture
Add a new future to the list for Futures we should wait for.
add(TimerListener, long) - Method in class org.cache2k.impl.timer.ArrayHeapTimerQueue
 
add(TimerPayloadListener<T>, T, long) - Method in class org.cache2k.impl.timer.ArrayHeapTimerQueue
 
add(TimerPayloadListener<T>, T, long) - Method in class org.cache2k.impl.timer.GlobalTimerService
 
add(TimerListener, long) - Method in class org.cache2k.impl.timer.GlobalTimerService
 
add(TimerListener, long) - Method in class org.cache2k.impl.timer.TimerService
Add a timer that fires at the specified time.
add(TimerPayloadListener<T>, T, long) - Method in class org.cache2k.impl.timer.TimerService
 
add(ImageFileStorage.HeapEntry) - Method in class org.cache2k.storage.ImageFileStorage.SlotBucket
 
add(FreeSpaceMap.Slot) - Method in class org.cache2k.storage.ImageFileStorage.SlotBucket
 
add(long, int) - Method in class org.cache2k.storage.ImageFileStorage.SlotBucket
 
AggregationStorageAdapter - Class in org.cache2k.impl
Not used now, aggregation prototype
AggregationStorageAdapter() - Constructor for class org.cache2k.impl.AggregationStorageAdapter
 
allocateSpace(FreeSpaceMap.Slot) - Method in class org.cache2k.storage.FreeSpaceMap
 
allocateSpace(long, int) - Method in class org.cache2k.storage.FreeSpaceMap
Used to rebuild the free space map.
another - Variable in class org.cache2k.impl.Entry
Hash implementation: Link to another entry in the same hash table slot when the hash code collides.
ArcCache<K,T> - Class in org.cache2k.impl
Adaptive Replacement Cache implementation for cache2k.
ArcCache() - Constructor for class org.cache2k.impl.ArcCache
 
ArcCache.Entry<K,T> - Class in org.cache2k.impl
An entry in the hash table
ArcCache.Entry() - Constructor for class org.cache2k.impl.ArcCache.Entry
 
ArrayHeapTimerQueue - Class in org.cache2k.impl.timer
Timer queue based on the Entry.nextRefreshTime field.
ArrayHeapTimerQueue(String) - Constructor for class org.cache2k.impl.timer.ArrayHeapTimerQueue
 
awaitTermination(long, TimeUnit) - Method in class org.cache2k.impl.threading.LimitedPooledExecutor
 
awaitTermination() - Method in interface org.cache2k.storage.CacheStorage.MultiThreadedContext
If threads are started by using CacheStorage.MultiThreadedContext.getExecutorService() waits for termination or tries to stop threads immediately if CacheStorage.MultiThreadedContext.shouldStop() is true.

B

BaseCache<E extends Entry,K,T> - Class in org.cache2k.impl
Foundation for all cache variants.
BaseCache() - Constructor for class org.cache2k.impl.BaseCache
 
BaseCache.Info - Class in org.cache2k.impl
Stable interface to request information from the cache, the object safes values that need a longer calculation time, other values are requested directly.
BaseCache.Info() - Constructor for class org.cache2k.impl.BaseCache.Info
 
BaseCache.MyTimerTask - Class in org.cache2k.impl
 
BaseCache.MyTimerTask() - Constructor for class org.cache2k.impl.BaseCache.MyTimerTask
 
BaseCache.Tunable - Class in org.cache2k.impl
 
BaseCache.Tunable() - Constructor for class org.cache2k.impl.BaseCache.Tunable
 
BaseTimerTask - Class in org.cache2k.impl.timer
 
BaseTimerTask(long) - Constructor for class org.cache2k.impl.timer.BaseTimerTask
 
build() - Method in class org.cache2k.impl.CacheBuilderImpl
 
buildThrowable(String, Throwable) - Static method in class org.cache2k.impl.StorageAdapter
 
bulkCacheSource - Variable in class org.cache2k.impl.BaseCache
 
bulkGetCnt - Variable in class org.cache2k.impl.BaseCache
 
ByReferenceHeapStorageImpl - Class in org.cache2k.storage
Simple storage implementation, just uses a hashmap.
ByReferenceHeapStorageImpl() - Constructor for class org.cache2k.storage.ByReferenceHeapStorageImpl
 
ByReferenceHeapStorageImpl.Provider - Class in org.cache2k.storage
 
ByReferenceHeapStorageImpl.Provider() - Constructor for class org.cache2k.storage.ByReferenceHeapStorageImpl.Provider
 
ByteBufferInputStream - Class in org.cache2k.storage
InputStream wrapper that reads directly from a bytebuffer.
ByteBufferInputStream(ByteBuffer) - Constructor for class org.cache2k.storage.ByteBufferInputStream
 

C

Cache2kCoreProviderImpl - Class in org.cache2k.impl
 
Cache2kCoreProviderImpl() - Constructor for class org.cache2k.impl.Cache2kCoreProviderImpl
 
Cache2kVersion - Class in org.cache2k.impl.util
Static helper class to provide the cache2k version.
Cache2kVersion() - Constructor for class org.cache2k.impl.util.Cache2kVersion
 
CacheBuilderImpl<K,T> - Class in org.cache2k.impl
 
CacheBuilderImpl() - Constructor for class org.cache2k.impl.CacheBuilderImpl
 
CacheClosedException - Exception in org.cache2k.impl
Consistently this exception is thrown, when an operation detects that the cache is closed.
CacheClosedException() - Constructor for exception org.cache2k.impl.CacheClosedException
 
cacheCreated(CacheManager, Cache) - Method in interface org.cache2k.impl.CacheLifeCycleListener
 
cacheDestroyed(CacheManager, Cache) - Method in interface org.cache2k.impl.CacheLifeCycleListener
 
cacheDestroyed(Cache) - Method in class org.cache2k.impl.CacheManagerImpl
 
CacheIntegrityError - Error in org.cache2k.impl
 
CacheIntegrityError(String, String, String) - Constructor for error org.cache2k.impl.CacheIntegrityError
 
CacheInternalError - Error in org.cache2k.impl
An internal error condition in the cache was detected that actually never is supposed to happen.
CacheInternalError() - Constructor for error org.cache2k.impl.CacheInternalError
 
CacheInternalError(String) - Constructor for error org.cache2k.impl.CacheInternalError
 
CacheInternalError(String, Throwable) - Constructor for error org.cache2k.impl.CacheInternalError
 
CacheInternalError(Throwable) - Constructor for error org.cache2k.impl.CacheInternalError
 
CacheInternalError(String, Throwable, boolean, boolean) - Constructor for error org.cache2k.impl.CacheInternalError
 
CacheLifeCycleListener - Interface in org.cache2k.impl
 
CacheLockSpinsExceededError - Error in org.cache2k.impl
 
CacheLockSpinsExceededError() - Constructor for error org.cache2k.impl.CacheLockSpinsExceededError
 
CacheManagerImpl - Class in org.cache2k.impl
 
CacheManagerImpl() - Constructor for class org.cache2k.impl.CacheManagerImpl
 
CacheManagerImpl(String) - Constructor for class org.cache2k.impl.CacheManagerImpl
 
CacheManagerLifeCycleListener - Interface in org.cache2k.impl
Service provider interface to hook in manager extensions.
CacheRefreshThreadPool - Class in org.cache2k.impl
Provides a shared thread pool used by all caches for background refreshes of expired entries.
CacheSizeEstimator - Class in org.cache2k.impl
 
CacheSizeEstimator() - Constructor for class org.cache2k.impl.CacheSizeEstimator
 
CacheStorage - Interface in org.cache2k.storage
An interface for persistent or off heap storage for a cache.
CacheStorage.EntryFilter - Interface in org.cache2k.storage
 
CacheStorage.EntryVisitor - Interface in org.cache2k.storage
 
CacheStorage.MultiThreadedContext - Interface in org.cache2k.storage
 
CacheStorage.VisitContext - Interface in org.cache2k.storage
 
CacheStorageContext - Interface in org.cache2k.storage
Expose the needed information and interactions with a cache to a cache storage.
CacheStorageException - Exception in org.cache2k.impl
 
CacheStorageException() - Constructor for exception org.cache2k.impl.CacheStorageException
 
CacheStorageException(String) - Constructor for exception org.cache2k.impl.CacheStorageException
 
CacheStorageException(String, Throwable) - Constructor for exception org.cache2k.impl.CacheStorageException
 
CacheStorageException(Throwable) - Constructor for exception org.cache2k.impl.CacheStorageException
 
CacheStorageProvider<EC> - Interface in org.cache2k.storage
 
CacheStorageProviderWithVoidConfig - Class in org.cache2k.storage
 
CacheStorageProviderWithVoidConfig() - Constructor for class org.cache2k.storage.CacheStorageProviderWithVoidConfig
Needs sub classing
CacheUsageExcpetion - Exception in org.cache2k.impl
Indicates cache missusage including configuration error.
CacheUsageExcpetion() - Constructor for exception org.cache2k.impl.CacheUsageExcpetion
 
CacheUsageExcpetion(String) - Constructor for exception org.cache2k.impl.CacheUsageExcpetion
 
CacheUsageExcpetion(String, Throwable) - Constructor for exception org.cache2k.impl.CacheUsageExcpetion
 
CacheUsageExcpetion(Throwable) - Constructor for exception org.cache2k.impl.CacheUsageExcpetion
 
calcEntryCount(Entry[]) - Static method in class org.cache2k.impl.Hash
Count the entries in the hash table, by scanning through the hash table.
calcHashCollisionInfo(BaseCache.CollisionInfo, Entry[]) - Static method in class org.cache2k.impl.Hash
 
calcNextRefreshTime(K, T, long, Entry) - Method in class org.cache2k.impl.BaseCache
 
calculateCompressedLongSize(long) - Static method in class org.cache2k.storage.ImageFileStorage
 
calculateHashEntryCount() - Method in class org.cache2k.impl.BaseCache
 
cancel(boolean) - Method in class org.cache2k.impl.threading.Futures.BusyWaitFuture
 
cancel(boolean) - Method in class org.cache2k.impl.threading.Futures.ExceptionFuture
 
cancel(boolean) - Method in class org.cache2k.impl.threading.Futures.FinishedFuture
 
cancel(boolean) - Method in class org.cache2k.impl.threading.Futures.WaitForAllFuture
Send cancel to all futures that are not yet cancelled.
cancel() - Method in class org.cache2k.impl.timer.NoPayloadTask
 
cancel() - Method in class org.cache2k.impl.timer.PayloadTask
Cancel the timer execution.
cancel() - Method in interface org.cache2k.impl.timer.TimerService.CancelHandle
Cancel the timer execution.
cancelTimerJobs() - Method in class org.cache2k.impl.AggregationStorageAdapter
 
cancelTimerJobs() - Method in class org.cache2k.impl.FailureStorageAdapter
 
cancelTimerJobs() - Method in class org.cache2k.impl.NoopStorageAdapter
 
cancelTimerJobs() - Method in class org.cache2k.impl.PassingStorageAdapter
may be executed more than once
cancelTimerJobs() - Method in class org.cache2k.impl.StorageAdapter
Cancel all schedules timer jobs in the storage.
CanCheckIntegrity - Interface in org.cache2k.impl
Cache supports checking its internal integrity.
check(String, String, boolean) - Method in class org.cache2k.impl.IntegrityState
 
check(String, boolean) - Method in class org.cache2k.impl.IntegrityState
 
checkAndPurge(Object) - Method in interface org.cache2k.storage.PurgeableStorage.PurgeAction
Check storage whether entry for the key is still expired.
checkClosed() - Method in class org.cache2k.impl.BaseCache
 
checkCyclicListIntegrity(Entry) - Static method in class org.cache2k.impl.BaseCache
 
checkEquals(String, int, int) - Method in class org.cache2k.impl.IntegrityState
 
checkEquals(String, long, long) - Method in class org.cache2k.impl.IntegrityState
 
checkForClearAndAbort() - Method in class org.cache2k.impl.ClosableConcurrentHashEntryIterator
Check if hash was cleared and we need to abort.
checkForGhost(K, int) - Method in class org.cache2k.impl.ArcCache
 
checkForGhost(K, int) - Method in class org.cache2k.impl.BaseCache
Check whether we have an entry in the ghost table remove it from ghost and insert it into the replacement list.
checkForGhost(K, int) - Method in class org.cache2k.impl.ClockProPlusCache
 
checkGreater(String, int, int) - Method in class org.cache2k.impl.IntegrityState
 
checkGreaterOrEquals(String, int, int) - Method in class org.cache2k.impl.IntegrityState
 
checkIntegrity() - Method in class org.cache2k.impl.BaseCache
Check internal data structures and throw and exception if something is wrong, used for unit testing
checkIntegrity() - Method in interface org.cache2k.impl.CanCheckIntegrity
Cache checks its internal integrity.
checkIteratedOrNext(E) - Method in class org.cache2k.impl.ClosableConcurrentHashEntryIterator
 
checkLess(String, int, int) - Method in class org.cache2k.impl.IntegrityState
 
checkLessOrEquals(String, int, int) - Method in class org.cache2k.impl.IntegrityState
 
checkStorageStillDisconnectedForClear() - Method in class org.cache2k.impl.AggregationStorageAdapter
 
checkStorageStillDisconnectedForClear() - Method in class org.cache2k.impl.FailureStorageAdapter
 
checkStorageStillDisconnectedForClear() - Method in class org.cache2k.impl.NoopStorageAdapter
 
checkStorageStillDisconnectedForClear() - Method in class org.cache2k.impl.PassingStorageAdapter
True means actually no operations started on the storage again, yet
checkStorageStillDisconnectedForClear() - Method in class org.cache2k.impl.StorageAdapter
 
clear() - Method in class org.cache2k.impl.BaseCache
 
clear() - Method in class org.cache2k.impl.CacheManagerImpl
 
clear() - Method in class org.cache2k.impl.ClearStorageBuffer
 
clear() - Method in class org.cache2k.storage.ByReferenceHeapStorageImpl
 
clear() - Method in interface org.cache2k.storage.CacheStorage
Remove all entries from the cache and free resources.
clear() - Method in class org.cache2k.storage.ImageFileStorage
Remove the files.
clearAndReconnect() - Method in class org.cache2k.impl.AggregationStorageAdapter
 
clearAndReconnect() - Method in class org.cache2k.impl.FailureStorageAdapter
 
clearAndReconnect() - Method in class org.cache2k.impl.NoopStorageAdapter
 
clearAndReconnect() - Method in class org.cache2k.impl.PassingStorageAdapter
Called in a (maybe) separate thread after disconnect.
clearAndReconnect() - Method in class org.cache2k.impl.StorageAdapter
Starts the parallel clearing process, returns immediatly
cleared() - Method in class org.cache2k.impl.Hash
The cache with this hash was cleared and the hash table is no longer in used.
clearedTime - Variable in class org.cache2k.impl.BaseCache
 
clearLocalCache() - Method in class org.cache2k.impl.BaseCache
 
ClearStorageBuffer - Class in org.cache2k.impl
Record cache operations during a storage clear and playback later.
ClearStorageBuffer() - Constructor for class org.cache2k.impl.ClearStorageBuffer
 
clearTimingStatistics() - Method in class org.cache2k.impl.BaseCache
 
ClockCache<K,T> - Class in org.cache2k.impl
Straight forward CLOCK implementation.
ClockCache() - Constructor for class org.cache2k.impl.ClockCache
 
ClockProPlusCache<K,T> - Class in org.cache2k.impl
CLOCK Pro implementation with 3 clocks.
ClockProPlusCache() - Constructor for class org.cache2k.impl.ClockProPlusCache
 
ClockProPlusCache.Tunable - Class in org.cache2k.impl
 
ClockProPlusCache.Tunable() - Constructor for class org.cache2k.impl.ClockProPlusCache.Tunable
 
clone() - Method in class org.cache2k.impl.util.TunableConstants
 
ClosableConcurrentHashEntryIterator<E extends Entry> - Class in org.cache2k.impl
Iterator over all hash table entries of two hashes.
ClosableConcurrentHashEntryIterator(Hash<E>, E[], Hash<E>, E[]) - Constructor for class org.cache2k.impl.ClosableConcurrentHashEntryIterator
 
close() - Method in class org.cache2k.impl.BaseCache
 
close() - Method in class org.cache2k.impl.CacheManagerImpl
The shutdown takes place in two phases.
close() - Method in class org.cache2k.impl.ClearStorageBuffer
 
close() - Method in class org.cache2k.impl.ClosableConcurrentHashEntryIterator
 
close() - Method in class org.cache2k.impl.Hash
Cache was closed.
close() - Method in class org.cache2k.impl.threading.GlobalPooledExecutor
Remove pending jobs from the task queue and stop threads in the pool.
close() - Method in class org.cache2k.storage.ByReferenceHeapStorageImpl
 
close() - Method in interface org.cache2k.storage.CacheStorage
Free all resources and stop operations immediately.
close() - Method in class org.cache2k.storage.ImageFileStorage
 
compareTo(FreeSpaceMap.Slot) - Method in class org.cache2k.storage.FreeSpaceMap.Slot
 
conditionallyStartProcess(E) - Method in class org.cache2k.impl.BaseCache
 
constructImplementationAndFillParameters(Class<?>) - Method in class org.cache2k.impl.CacheBuilderImpl
 
contains(K) - Method in class org.cache2k.impl.BaseCache
 
contains(Object) - Method in class org.cache2k.impl.ClearStorageBuffer
 
contains(Entry[], Object, int) - Static method in class org.cache2k.impl.Hash
 
contains(Object) - Method in class org.cache2k.storage.ByReferenceHeapStorageImpl
 
contains(Object) - Method in interface org.cache2k.storage.CacheStorage
Returns true if there is a mapping for the key.
contains(Object) - Method in class org.cache2k.storage.ImageFileStorage
 
create(CacheStorageContext, StorageConfiguration<Void>) - Method in class org.cache2k.storage.ByReferenceHeapStorageImpl.Provider
 
create(CacheStorageContext, StorageConfiguration<EC>) - Method in interface org.cache2k.storage.CacheStorageProvider
 
create(CacheStorageContext, StorageConfiguration) - Method in class org.cache2k.storage.ImageFileStorage.Provider
 
createConfigurationBuilder(CacheBuilder<K, T>) - Method in class org.cache2k.storage.CacheStorageProviderWithVoidConfig
 
createEvictionExecutor() - Method in class org.cache2k.impl.CacheManagerImpl
 
createMarshaller(Class<?>) - Method in interface org.cache2k.storage.MarshallerFactory
Create a marshaller that is suitable for the type.
createMarshaller(MarshallerFactory.Parameters) - Method in interface org.cache2k.storage.MarshallerFactory
Used to create a marshaller in a configuration that was used for marshalling.
createMarshaller(Class<?>) - Method in class org.cache2k.storage.Marshallers
 
createMarshaller(MarshallerFactory.Parameters) - Method in class org.cache2k.storage.Marshallers
 
createMarshaller(Class<?>) - Method in class org.cache2k.storage.SerializingMarshallerFactory
 
createMarshaller(MarshallerFactory.Parameters) - Method in class org.cache2k.storage.SerializingMarshallerFactory
 
CUSTOM_TUNING_FILE_NAME - Static variable in class org.cache2k.impl.util.TunableFactory
 

D

debug(String) - Method in class org.cache2k.impl.util.Log
 
debug(String, Throwable) - Method in class org.cache2k.impl.util.Log
 
debug(String) - Method in class org.cache2k.impl.util.Log.SuppressionCounter
 
debug(String, Throwable) - Method in class org.cache2k.impl.util.Log.SuppressionCounter
 
decrementSuppressExpandCount() - Method in class org.cache2k.impl.Hash
 
DEFAULT_TUNING_FILE_NAME - Static variable in class org.cache2k.impl.util.TunableFactory
 
defaultImplementation - Variable in class org.cache2k.impl.BaseCache.Tunable
Implementation class to use by default.
DefaultThreadFactoryProvider - Class in org.cache2k.impl.threading
Provide the default implementation for the thread factory.
DefaultThreadFactoryProvider() - Constructor for class org.cache2k.impl.threading.DefaultThreadFactoryProvider
 
DepthSearchAndSizeCounter - Class in org.cache2k.impl
Helper to estimate the size of object within a cache.
DepthSearchAndSizeCounter() - Constructor for class org.cache2k.impl.DepthSearchAndSizeCounter
 
DepthSearchAndSizeCounter.EstimationException - Exception in org.cache2k.impl
 
descend() - Method in class org.cache2k.impl.DepthSearchAndSizeCounter
 
destroy() - Method in class org.cache2k.impl.BaseCache
 
destroy() - Method in class org.cache2k.impl.CacheManagerImpl
 
destroy() - Method in class org.cache2k.impl.CacheRefreshThreadPool
 
disable(Throwable) - Method in class org.cache2k.impl.AggregationStorageAdapter
Bad thing occurred, we do not what storage is to be blamed.
disable(Throwable) - Method in class org.cache2k.impl.FailureStorageAdapter
 
disable(Throwable) - Method in class org.cache2k.impl.NoopStorageAdapter
 
disable(String, Throwable) - Method in class org.cache2k.impl.PassingStorageAdapter
 
disable(Throwable) - Method in class org.cache2k.impl.PassingStorageAdapter
 
disable(Throwable) - Method in class org.cache2k.impl.StorageAdapter
 
disableAndThrow(String, Throwable) - Method in class org.cache2k.impl.PassingStorageAdapter
 
disableHardLimit - Variable in class org.cache2k.impl.threading.GlobalPooledExecutor.Tunable
Can be needed for applications which need a high thread count.
disableHashRandomization - Variable in class org.cache2k.impl.BaseCache.Tunable
The hash code will randomized by default.
disableOnFailure(Throwable) - Method in class org.cache2k.impl.ClearStorageBuffer
 
disconnectStorageForClear() - Method in class org.cache2k.impl.AggregationStorageAdapter
 
disconnectStorageForClear() - Method in class org.cache2k.impl.FailureStorageAdapter
 
disconnectStorageForClear() - Method in class org.cache2k.impl.NoopStorageAdapter
 
disconnectStorageForClear() - Method in class org.cache2k.impl.PassingStorageAdapter
Disconnect storage so cache can wait for all entry operations to finish.
disconnectStorageForClear() - Method in class org.cache2k.impl.StorageAdapter
 

E

enableUntested - Variable in class org.cache2k.impl.threading.LimitedPooledExecutor.Tunable
Enables yet untested code.
ensureFetchAbort(boolean) - Method in class org.cache2k.impl.Entry
If fetch is not stopped, abort and make entry invalid.
Entry<E extends Entry,K,T> - Class in org.cache2k.impl
The cache entry.
Entry() - Constructor for class org.cache2k.impl.Entry
 
entryExpiryCalculator - Variable in class org.cache2k.impl.BaseCache
 
EntryExpiryUpdateableStorage - Interface in org.cache2k.storage
Storage supports an efficient way to update the expiry time of an entry.
equals(Object) - Method in class org.cache2k.impl.Entry
Cache entries always have the object identity as equals method.
evict(Entry) - Method in class org.cache2k.impl.AggregationStorageAdapter
 
evict(Entry) - Method in class org.cache2k.impl.FailureStorageAdapter
 
evict(Entry) - Method in class org.cache2k.impl.NoopStorageAdapter
 
evict(Entry) - Method in class org.cache2k.impl.PassingStorageAdapter
If passivation is not enabled, then we need to do nothing here since, the entry was transferred to the storage on the StorageAdapter.put(Entry, long) operation.
evict(Entry) - Method in class org.cache2k.impl.StorageAdapter
 
evictedButInHashCnt - Variable in class org.cache2k.impl.BaseCache
Needed to correct the counter invariants, because during eviction the entry might be removed from the replacement list, but still in the hash.
evictedCnt - Variable in class org.cache2k.impl.BaseCache
 
evictEventually() - Method in class org.cache2k.impl.BaseCache
 
evictionNeeded - Variable in class org.cache2k.impl.BaseCache
Flag during operation that indicates, that the cache is full and eviction needs to be done.
exceptionExpiryCalculator - Variable in class org.cache2k.impl.BaseCache
 
exceptionMaxLinger - Variable in class org.cache2k.impl.BaseCache
 
exceptionWasThrown(Throwable) - Method in interface org.cache2k.impl.threading.LimitedPooledExecutor.ExceptionListener
 
ExceptionWrapper - Class in org.cache2k.impl
We use instances of the exception wrapper for the value field in the entry.
ExceptionWrapper(Throwable) - Constructor for class org.cache2k.impl.ExceptionWrapper
 
execute(Runnable) - Method in class org.cache2k.impl.threading.GlobalPooledExecutor
 
execute(Callable<V>) - Method in class org.cache2k.impl.threading.GlobalPooledExecutor
 
execute(Runnable, GlobalPooledExecutor.ProgressNotifier) - Method in class org.cache2k.impl.threading.GlobalPooledExecutor
 
execute(Callable<V>, GlobalPooledExecutor.ProgressNotifier) - Method in class org.cache2k.impl.threading.GlobalPooledExecutor
 
execute(Callable<V>, GlobalPooledExecutor.ProgressNotifier, long) - Method in class org.cache2k.impl.threading.GlobalPooledExecutor
 
execute(Runnable) - Method in class org.cache2k.impl.threading.LimitedPooledExecutor
 
experimentalBulkCacheSource - Variable in class org.cache2k.impl.BaseCache
 
expire(Entry) - Method in class org.cache2k.impl.AggregationStorageAdapter
 
expire(Entry) - Method in class org.cache2k.impl.FailureStorageAdapter
 
expire(Entry) - Method in class org.cache2k.impl.NoopStorageAdapter
 
expire(Entry) - Method in class org.cache2k.impl.PassingStorageAdapter
An expired entry was removed from the memory cache and can also be removed from the storage.
expire(Entry) - Method in class org.cache2k.impl.StorageAdapter
TODO: Relly needed?
expiredKeptCnt - Variable in class org.cache2k.impl.BaseCache
 
expiredRemoveCnt - Variable in class org.cache2k.impl.BaseCache
 
expireEntry(E) - Method in class org.cache2k.impl.BaseCache
 
extensionSize - Variable in class org.cache2k.storage.ImageFileStorage.Tunable
The storage is expanded by the given increment, if set to 0 it is only expanded by the object size, each time to space is needed.

F

FailureStorageAdapter - Class in org.cache2k.impl
 
FailureStorageAdapter(Throwable) - Constructor for class org.cache2k.impl.FailureStorageAdapter
 
fastClose() - Method in class org.cache2k.storage.ImageFileStorage
Close immediately without doing a commit.
fetch(E) - Method in class org.cache2k.impl.BaseCache
 
fetchButHitCnt - Variable in class org.cache2k.impl.BaseCache
 
fetchCnt - Variable in class org.cache2k.impl.BaseCache
 
fetchedTime - Variable in class org.cache2k.impl.Entry
Time the entry was last updated by put or by fetching it from the cache source.
fetchExceptionCnt - Variable in class org.cache2k.impl.BaseCache
 
fetchFromSource(E) - Method in class org.cache2k.impl.BaseCache
 
fetchMillis - Variable in class org.cache2k.impl.BaseCache
 
fetchWithStorage(E, boolean) - Method in class org.cache2k.impl.BaseCache
 
finalize() - Method in class org.cache2k.impl.ClosableConcurrentHashEntryIterator
 
findEvictionCandidate() - Method in class org.cache2k.impl.ArcCache
 
findEvictionCandidate() - Method in class org.cache2k.impl.BaseCache
Find an entry that should be evicted.
findEvictionCandidate() - Method in class org.cache2k.impl.ClockCache
Run to evict an entry.
findEvictionCandidate() - Method in class org.cache2k.impl.ClockProPlusCache
Runs cold hand an in turn hot hand to find eviction candidate.
findEvictionCandidate() - Method in class org.cache2k.impl.LruCache
 
findEvictionCandidate() - Method in class org.cache2k.impl.RandomCache
Start at arbitrary hash slot and evict the next best entry.
findFree(int) - Method in class org.cache2k.storage.FreeSpaceMap
Find a slot which size is greater then the needed size and remove it from the free space map.
finishFetch(long) - Method in class org.cache2k.impl.Entry
 
fire(long) - Method in class org.cache2k.impl.timer.BaseTimerTask
 
fire(long) - Method in class org.cache2k.impl.timer.NoPayloadTask
 
fire(long) - Method in class org.cache2k.impl.timer.PayloadTask
 
fire(long) - Method in interface org.cache2k.impl.timer.TimerListener
 
fire(T, long) - Method in interface org.cache2k.impl.timer.TimerPayloadListener
 
flush() - Method in class org.cache2k.impl.AggregationStorageAdapter
 
flush() - Method in class org.cache2k.impl.BaseCache
 
flush(FlushableStorage.FlushContext, long) - Method in class org.cache2k.impl.ClearStorageBuffer
Stall this thread until the op is executed.
flush() - Method in class org.cache2k.impl.FailureStorageAdapter
 
flush() - Method in class org.cache2k.impl.NoopStorageAdapter
 
flush() - Method in class org.cache2k.impl.PassingStorageAdapter
Initiate flush on the storage.
flush() - Method in class org.cache2k.impl.StorageAdapter
 
flush(FlushableStorage.FlushContext, long) - Method in interface org.cache2k.storage.FlushableStorage
Flush any unwritten information to disk.
flush(FlushableStorage.FlushContext, long) - Method in class org.cache2k.storage.ImageFileStorage
Write key to object index to disk for all modified entries.
FlushableStorage - Interface in org.cache2k.storage
Optional interface for a CacheStorage if the storage needs to flush any unwritten data to make it persistent.
FlushableStorage.FlushContext - Interface in org.cache2k.storage
 
formatMillis(long) - Static method in class org.cache2k.impl.util.Util
 
freeMap - Variable in class org.cache2k.storage.ImageFileStorage
 
freeSpace(FreeSpaceMap.Slot) - Method in class org.cache2k.storage.FreeSpaceMap
 
freeSpace(long, int) - Method in class org.cache2k.storage.FreeSpaceMap
Free the space.
freeSpaceAfterMillis - Variable in class org.cache2k.storage.ImageFileStorage.Tunable
Time after unused space is finally freed and maybe reused.
FreeSpaceMap - Class in org.cache2k.storage
Holds areas of free space (slots).
FreeSpaceMap() - Constructor for class org.cache2k.storage.FreeSpaceMap
 
FreeSpaceMap.Slot - Class in org.cache2k.storage
Describes an area of free space in the storage.
FreeSpaceMap.Slot() - Constructor for class org.cache2k.storage.FreeSpaceMap.Slot
 
FreeSpaceMap.Slot(long, int) - Constructor for class org.cache2k.storage.FreeSpaceMap.Slot
 
Futures - Class in org.cache2k.impl.threading
 
Futures() - Constructor for class org.cache2k.impl.threading.Futures
 
Futures.BusyWaitFuture<V> - Class in org.cache2k.impl.threading
 
Futures.BusyWaitFuture() - Constructor for class org.cache2k.impl.threading.Futures.BusyWaitFuture
 
Futures.BusyWaitFuture(V) - Constructor for class org.cache2k.impl.threading.Futures.BusyWaitFuture
 
Futures.BusyWaitFuture(int, V) - Constructor for class org.cache2k.impl.threading.Futures.BusyWaitFuture
 
Futures.ExceptionFuture<V> - Class in org.cache2k.impl.threading
 
Futures.ExceptionFuture(Throwable) - Constructor for class org.cache2k.impl.threading.Futures.ExceptionFuture
 
Futures.FinishedFuture<V> - Class in org.cache2k.impl.threading
 
Futures.FinishedFuture() - Constructor for class org.cache2k.impl.threading.Futures.FinishedFuture
 
Futures.FinishedFuture(V) - Constructor for class org.cache2k.impl.threading.Futures.FinishedFuture
 
Futures.WaitForAllFuture<V> - Class in org.cache2k.impl.threading
A container for futures which waits for all futures to finish.
Futures.WaitForAllFuture(Future<V>) - Constructor for class org.cache2k.impl.threading.Futures.WaitForAllFuture
 
Futures.WaitForAllFuture(Future<V>...) - Constructor for class org.cache2k.impl.threading.Futures.WaitForAllFuture
 

G

generateThredDump() - Static method in class org.cache2k.impl.util.ThreadDump
 
get(Object) - Method in class org.cache2k.impl.AggregationStorageAdapter
Ask storages for the entry.
get(K) - Method in class org.cache2k.impl.BaseCache
 
get(Object) - Method in class org.cache2k.impl.ClearStorageBuffer
 
get(Object) - Method in class org.cache2k.impl.FailureStorageAdapter
 
get(Object) - Method in class org.cache2k.impl.NoopStorageAdapter
 
get(Object) - Method in class org.cache2k.impl.PassingStorageAdapter
 
get(Object) - Method in class org.cache2k.impl.StorageAdapter
 
get() - Method in class org.cache2k.impl.threading.Futures.BusyWaitFuture
Just busy wait for running fetches.
get(long, TimeUnit) - Method in class org.cache2k.impl.threading.Futures.BusyWaitFuture
 
get() - Method in class org.cache2k.impl.threading.Futures.ExceptionFuture
 
get(long, TimeUnit) - Method in class org.cache2k.impl.threading.Futures.ExceptionFuture
 
get() - Method in class org.cache2k.impl.threading.Futures.FinishedFuture
 
get(long, TimeUnit) - Method in class org.cache2k.impl.threading.Futures.FinishedFuture
 
get() - Method in class org.cache2k.impl.threading.Futures.WaitForAllFuture
Wait until everything is finished.
get(long, TimeUnit) - Method in class org.cache2k.impl.threading.Futures.WaitForAllFuture
 
get(Properties, Class<T>) - Static method in class org.cache2k.impl.util.TunableFactory
 
get(Class<T>) - Static method in class org.cache2k.impl.util.TunableFactory
 
get(Object) - Method in class org.cache2k.storage.ByReferenceHeapStorageImpl
 
get(Object) - Method in interface org.cache2k.storage.CacheStorage
Retrieve the entry from the storage.
get(Object) - Method in class org.cache2k.storage.ImageFileStorage
 
getAlert() - Method in class org.cache2k.impl.AggregationStorageAdapter
 
getAlert() - Method in class org.cache2k.impl.FailureStorageAdapter
 
getAlert() - Method in class org.cache2k.impl.NoopStorageAdapter
 
getAlert() - Method in class org.cache2k.impl.PassingStorageAdapter
orange alert level if buffer is active, so we get alerted if storage clear isn't finished.
getAlert() - Method in class org.cache2k.impl.StorageAdapter
0 means no alert, 1 orange, 2, red alert
getAll(K[]) - Method in class org.cache2k.impl.BaseCache
JSR107 convenience getAll from array
getAll(Set<? extends K>) - Method in class org.cache2k.impl.BaseCache
JSR107 bulk interface
getBuilderImplementation() - Method in class org.cache2k.impl.Cache2kCoreProviderImpl
 
getBuildNumber() - Method in class org.cache2k.impl.CacheManagerImpl
 
getBuildNumber() - Static method in class org.cache2k.impl.util.Cache2kVersion
 
getBulk(K[], T[], BitSet, int, int) - Method in class org.cache2k.impl.BaseCache
Retrieve
getBulkGetCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getByteCount() - Method in class org.cache2k.impl.DepthSearchAndSizeCounter
 
getBytesFreed() - Method in interface org.cache2k.storage.PurgeableStorage.PurgeResult
Free space reclaimed.
getCache(String) - Method in class org.cache2k.impl.CacheManagerImpl
 
getCacheName() - Method in interface org.cache2k.storage.CacheStorageContext
 
getCacheStatistics() - Method in error org.cache2k.impl.CacheIntegrityError
 
getCancelCount() - Method in class org.cache2k.impl.timer.ArrayHeapTimerQueue
 
getCancelCount() - Method in class org.cache2k.impl.timer.GlobalTimerService
 
getCancelCount() - Method in class org.cache2k.impl.timer.TimerService
 
getCleared() - Method in class org.cache2k.impl.BaseCache.Info
 
getCollisionCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getCollisionPercentage() - Method in class org.cache2k.impl.BaseCache.Info
How many items will be accessed with collision
getCollisionSlotCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getCompleteName() - Method in class org.cache2k.impl.BaseCache
Returns name of the cache with manager name.
getCounter() - Method in class org.cache2k.impl.DepthSearchAndSizeCounter
 
getCreatedOrUpdated() - Method in class org.cache2k.impl.Entry
Used for the storage interface.
getCreatedOrUpdated() - Method in interface org.cache2k.storage.StorageEntry
Time the entry was last fetched or created from the original source
getCyclicListEntryCount(Entry) - Static method in class org.cache2k.impl.BaseCache
 
getDataHitRate() - Method in class org.cache2k.impl.BaseCache.Info
 
getDataHitString() - Method in class org.cache2k.impl.BaseCache.Info
 
getDebugCount() - Method in class org.cache2k.impl.util.Log.SuppressionCounter
 
getDefaultPersistenceStoreImplementation() - Method in class org.cache2k.impl.Cache2kCoreProviderImpl
 
getDiedThreadCount() - Method in class org.cache2k.impl.threading.GlobalPooledExecutor
 
getEntriesPurged() - Method in interface org.cache2k.storage.PurgeableStorage.PurgeResult
Number of entries purged
getEntriesScanned() - Method in interface org.cache2k.storage.PurgeableStorage.PurgeResult
Number of entries scanned.
getEntry(K) - Method in class org.cache2k.impl.BaseCache
 
getEntryCount() - Method in class org.cache2k.impl.ClearStorageBuffer
 
getEntryCount() - Method in class org.cache2k.storage.ByReferenceHeapStorageImpl
 
getEntryCount() - Method in interface org.cache2k.storage.CacheStorage
 
getEntryCount() - Method in class org.cache2k.storage.ImageFileStorage
 
getEntryExpiryTime() - Method in class org.cache2k.impl.Entry
Used for the storage interface.
getEntryExpiryTime() - Method in interface org.cache2k.storage.StorageEntry
Expiry time of the storage entry.
getEntryHitRate() - Method in class org.cache2k.impl.BaseCache.Info
 
getEntryHitString() - Method in class org.cache2k.impl.BaseCache.Info
 
getEntryInternal(K) - Method in class org.cache2k.impl.BaseCache
 
getEventsDelivered() - Method in class org.cache2k.impl.timer.ArrayHeapTimerQueue
 
getEventsDelivered() - Method in class org.cache2k.impl.timer.GlobalTimerService
 
getEventsDelivered() - Method in class org.cache2k.impl.timer.TimerService
 
getEventsScheduled() - Method in class org.cache2k.impl.timer.ArrayHeapTimerQueue
 
getEventsScheduled() - Method in class org.cache2k.impl.timer.GlobalTimerService
 
getEventsScheduled() - Method in class org.cache2k.impl.timer.TimerService
 
getEvictedCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getEvictionExecutor() - Method in class org.cache2k.impl.CacheManagerImpl
 
getException() - Method in class org.cache2k.impl.Entry
 
getException() - Method in class org.cache2k.impl.ExceptionWrapper
 
getExecutorService() - Method in interface org.cache2k.storage.CacheStorage.MultiThreadedContext
A private executor service for this operation to run in multiple threads.
getExpiredCnt() - Method in class org.cache2k.impl.BaseCache
 
getExpiredCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getExtraStatistics() - Method in class org.cache2k.impl.ArcCache
 
getExtraStatistics() - Method in class org.cache2k.impl.BaseCache
 
getExtraStatistics() - Method in class org.cache2k.impl.BaseCache.Info
 
getExtraStatistics() - Method in class org.cache2k.impl.ClockCache
 
getExtraStatistics() - Method in class org.cache2k.impl.ClockProPlusCache
 
getFactoryParameters() - Method in interface org.cache2k.storage.Marshaller
 
getFactoryParameters() - Method in class org.cache2k.storage.StandardMarshaller
 
getFailingChecks() - Method in class org.cache2k.impl.IntegrityState
 
getFailingChecksString() - Method in error org.cache2k.impl.CacheIntegrityError
 
getFetchCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getFetchesBecauseOfNewEntries() - Method in class org.cache2k.impl.BaseCache
For peek no fetch is counted if there is a storage miss, hence the extra counter.
getFetchesInFlight() - Method in class org.cache2k.impl.BaseCache
 
getFetchesInFlightCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getFetchExceptionCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getFetchMillis() - Method in class org.cache2k.impl.BaseCache.Info
 
getFireExceptionCount() - Method in class org.cache2k.impl.timer.ArrayHeapTimerQueue
 
getFireExceptionCount() - Method in class org.cache2k.impl.timer.GlobalTimerService
 
getFireExceptionCount() - Method in class org.cache2k.impl.timer.TimerService
 
getFreeSpace() - Method in class org.cache2k.storage.FreeSpaceMap
 
getFreeSpace() - Method in class org.cache2k.storage.ImageFileStorage
 
getHashQualityInteger() - Method in class org.cache2k.impl.BaseCache.Info
 
getHealth() - Method in class org.cache2k.impl.BaseCache.Info
 
getHighestSlot() - Method in class org.cache2k.storage.FreeSpaceMap
 
getHitCnt() - Method in class org.cache2k.impl.ArcCache
 
getHitCnt() - Method in class org.cache2k.impl.BaseCache
 
getHitCnt() - Method in class org.cache2k.impl.ClockCache
 
getHitCnt() - Method in class org.cache2k.impl.ClockProPlusCache
 
getHitCnt() - Method in class org.cache2k.impl.LruCache
 
getHitCnt() - Method in class org.cache2k.impl.RandomCache
 
getHotMax() - Method in class org.cache2k.impl.ClockProPlusCache
 
getHq0() - Method in class org.cache2k.impl.BaseCache.Info
 
getHq1() - Method in class org.cache2k.impl.BaseCache.Info
 
getHq2() - Method in class org.cache2k.impl.BaseCache.Info
 
getImplementation() - Method in class org.cache2k.impl.BaseCache.Info
 
getImplementation() - Method in class org.cache2k.impl.PassingStorageAdapter
 
getInfo() - Method in class org.cache2k.impl.BaseCache
 
getInfoCount() - Method in class org.cache2k.impl.util.Log.SuppressionCounter
 
getInfoCreated() - Method in class org.cache2k.impl.BaseCache.Info
 
getInfoCreationDeltaMs() - Method in class org.cache2k.impl.BaseCache.Info
 
getInstance() - Static method in class org.cache2k.impl.CacheRefreshThreadPool
Get an instance of the pool.
getInstance() - Static method in class org.cache2k.impl.timer.GlobalTimerService
 
getInstance() - Static method in class org.cache2k.storage.Marshallers
 
getIntegrityDescriptor() - Method in class org.cache2k.impl.BaseCache.Info
 
getIntegrityState() - Method in class org.cache2k.impl.ArcCache
 
getIntegrityState() - Method in class org.cache2k.impl.BaseCache
 
getIntegrityState() - Method in class org.cache2k.impl.ClockCache
 
getIntegrityState() - Method in class org.cache2k.impl.ClockProPlusCache
 
getIntegrityState() - Method in class org.cache2k.impl.LruCache
 
getInternalExceptionCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getKey() - Method in class org.cache2k.impl.Entry
 
getKey() - Method in interface org.cache2k.storage.StorageEntry
Key of the stored entry
getKeyMutationCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getKeyType() - Method in interface org.cache2k.storage.CacheStorageContext
Type of the cache key.
getLastModification() - Method in class org.cache2k.impl.Entry
 
getLatestInfo() - Method in class org.cache2k.impl.BaseCache
 
getListEntryCount(Entry) - Static method in class org.cache2k.impl.BaseCache
 
getLocalSize() - Method in class org.cache2k.impl.BaseCache
 
getLog() - Method in class org.cache2k.impl.BaseCache
Normally a cache itself logs nothing, so just construct when needed.
getLog(Class<?>) - Static method in class org.cache2k.impl.util.Log
 
getLog(String) - Static method in class org.cache2k.impl.util.Log
 
getLog(String) - Method in interface org.cache2k.impl.util.LogFactory
 
getLog() - Method in interface org.cache2k.storage.CacheStorageContext
 
getLongestCollisionSize() - Method in class org.cache2k.impl.BaseCache.Info
 
getManagerName() - Method in interface org.cache2k.storage.CacheStorageContext
 
getMarshallerConfiguration() - Method in class org.cache2k.storage.MarshallerFactory.Parameters
 
getMarshallerFactory() - Method in interface org.cache2k.storage.CacheStorageContext
A marshaller factory the storage may use.
getMarshallerFactory() - Method in class org.cache2k.storage.MarshallerFactory.Parameters
 
getMarshallerType() - Method in class org.cache2k.storage.MarshallerFactory.Parameters
 
getMaxSize() - Method in class org.cache2k.impl.BaseCache.Info
 
getMillisPerFetch() - Method in class org.cache2k.impl.BaseCache.Info
 
getMissCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getName() - Method in class org.cache2k.impl.BaseCache
 
getName() - Method in class org.cache2k.impl.BaseCache.Info
 
getName() - Method in class org.cache2k.impl.CacheManagerImpl
 
getNewEntryCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getNextCount() - Method in class org.cache2k.impl.DepthSearchAndSizeCounter
 
getNextPosition() - Method in class org.cache2k.storage.FreeSpaceMap.Slot
 
getObjectCount() - Method in class org.cache2k.impl.DepthSearchAndSizeCounter
 
getPath() - Method in exception org.cache2k.impl.DepthSearchAndSizeCounter.EstimationException
 
getPayloadType() - Method in class org.cache2k.storage.MarshallerFactory.Parameters
 
getPeakThreadCount() - Method in class org.cache2k.impl.threading.GlobalPooledExecutor
 
getPosition() - Method in class org.cache2k.storage.FreeSpaceMap.Slot
 
getPriority() - Method in interface org.cache2k.storage.MarshallerFactory
The higher the more specialized.
getPriority() - Method in class org.cache2k.storage.Marshallers
 
getPriority() - Method in class org.cache2k.storage.SerializingMarshallerFactory
 
getProperties() - Method in interface org.cache2k.storage.CacheStorageContext
 
getPurgeCount() - Method in class org.cache2k.impl.timer.ArrayHeapTimerQueue
 
getPurgeCount() - Method in class org.cache2k.impl.timer.GlobalTimerService
 
getPurgeCount() - Method in class org.cache2k.impl.timer.TimerService
 
getPutCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getPutCnt() - Method in class org.cache2k.storage.ImageFileStorage
 
getPutNewEntryCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getQueueSize() - Method in class org.cache2k.impl.timer.ArrayHeapTimerQueue
 
getQueueSize() - Method in class org.cache2k.impl.timer.GlobalTimerService
 
getQueueSize() - Method in class org.cache2k.impl.timer.TimerService
Return the tasks in the timer queue including the cancelled.
getReadUsageCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getRefreshCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getRefreshHitCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getRefreshSubmitFailedCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getRemovedCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getResult() - Method in class org.cache2k.impl.threading.Futures.BusyWaitFuture
 
getSize() - Method in class org.cache2k.impl.BaseCache.Info
 
getSize() - Method in class org.cache2k.storage.FreeSpaceMap.Slot
 
getSizeOfLargestSlot() - Method in class org.cache2k.storage.FreeSpaceMap
 
getSizeOfSmallestSlot() - Method in class org.cache2k.storage.FreeSpaceMap
 
getSlotCount() - Method in class org.cache2k.storage.FreeSpaceMap
 
getSlotsPercentage() - Method in class org.cache2k.impl.BaseCache.Info
100 means each collision has its own slot
getSpaceToFree() - Method in class org.cache2k.storage.ImageFileStorage.SlotBucket
 
getStarted() - Method in class org.cache2k.impl.BaseCache.Info
 
getStateDescriptor() - Method in error org.cache2k.impl.CacheIntegrityError
 
getStateDescriptor() - Method in class org.cache2k.impl.IntegrityState
 
getStateFlags() - Method in class org.cache2k.impl.IntegrityState
 
getStorage() - Method in class org.cache2k.impl.BaseCache
 
getStorageHitCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getStorageLoadCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getStorageMissCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getSuppressedExceptionCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getThreadInUseCount() - Method in class org.cache2k.impl.threading.GlobalPooledExecutor
 
getThreadPool() - Method in class org.cache2k.impl.CacheManagerImpl
Lazy creation of thread pool, usable for all caches managed by the cache manager.
getThreadPoolEventually() - Method in class org.cache2k.impl.CacheManagerImpl
Only return thread pool if created before.
getTime() - Method in class org.cache2k.impl.timer.BaseTimerTask
 
getTimestamp() - Static method in class org.cache2k.impl.util.Cache2kVersion
 
getTotalEntryCount() - Method in class org.cache2k.impl.AggregationStorageAdapter
 
getTotalEntryCount() - Method in class org.cache2k.impl.BaseCache
 
getTotalEntryCount() - Method in class org.cache2k.impl.FailureStorageAdapter
 
getTotalEntryCount() - Method in class org.cache2k.impl.NoopStorageAdapter
 
getTotalEntryCount() - Method in class org.cache2k.impl.PassingStorageAdapter
Calculates the cache size, depending on the persistence configuration
getTotalEntryCount() - Method in class org.cache2k.impl.StorageAdapter
Return the total number of entries within the heap and the storage.
getTotalStartedThreadCount() - Method in class org.cache2k.impl.threading.GlobalPooledExecutor
 
getTotalValueSpace() - Method in class org.cache2k.storage.ImageFileStorage
 
getTouched() - Method in class org.cache2k.impl.BaseCache.Info
 
getType() - Method in interface org.cache2k.storage.MarshallerFactory
The type the marshaller is specialized for
getType() - Method in class org.cache2k.storage.Marshallers
 
getType() - Method in class org.cache2k.storage.SerializingMarshallerFactory
 
getUncommittedEntryCount() - Method in class org.cache2k.storage.ImageFileStorage
 
getUsageCnt() - Method in class org.cache2k.impl.BaseCache.Info
 
getValue() - Method in class org.cache2k.impl.Entry
 
getValueExpiryTime() - Method in class org.cache2k.impl.Entry
Expiry time or 0.
getValueExpiryTime() - Method in interface org.cache2k.storage.StorageEntry
Time when the value is expired and is not allowed to be returned any more.
getValueOrException() - Method in class org.cache2k.impl.Entry
Used for the storage interface.
getValueOrException() - Method in interface org.cache2k.storage.StorageEntry
Value of the stored entry
getValueType() - Method in interface org.cache2k.storage.CacheStorageContext
Type of the cache value.
getVersion() - Method in class org.cache2k.impl.CacheManagerImpl
 
getVersion() - Static method in class org.cache2k.impl.util.Cache2kVersion
 
getWarnCount() - Method in class org.cache2k.impl.util.Log.SuppressionCounter
 
GlobalPooledExecutor - Class in org.cache2k.impl.threading
A thread pool to be shared amount several client caches for different purposes.
GlobalPooledExecutor(String) - Constructor for class org.cache2k.impl.threading.GlobalPooledExecutor
 
GlobalPooledExecutor.ProgressNotifier - Interface in org.cache2k.impl.threading
 
GlobalPooledExecutor.Tunable - Class in org.cache2k.impl.threading
 
GlobalPooledExecutor.Tunable() - Constructor for class org.cache2k.impl.threading.GlobalPooledExecutor.Tunable
 
GlobalThreadFactory - Class in org.cache2k.impl.threading
Factory which names the threads uniquely.
GlobalThreadFactory(String) - Constructor for class org.cache2k.impl.threading.GlobalThreadFactory
 
GlobalTimerService - Class in org.cache2k.impl.timer
 
GlobalTimerService(String, int) - Constructor for class org.cache2k.impl.timer.GlobalTimerService
 

H

hardLimitThreadCount - Variable in class org.cache2k.impl.threading.GlobalPooledExecutor.Tunable
No more threads than this limit are created.
hasBackgroundRefreshAndServesExpiredValues() - Method in class org.cache2k.impl.BaseCache
Enabling background refresh means also serving expired values.
hasCircles() - Method in class org.cache2k.impl.DepthSearchAndSizeCounter
 
hasCommonObjects() - Method in class org.cache2k.impl.DepthSearchAndSizeCounter
 
hasException() - Method in class org.cache2k.impl.Entry
 
hasFreshData() - Method in class org.cache2k.impl.Entry
Returns true if the entry has a valid value and is fresh / not expired.
hasFreshData(long) - Method in class org.cache2k.impl.Entry
Same as Entry.hasFreshData(), optimization if current time is known.
hasFreshData(long, long) - Method in class org.cache2k.impl.Entry
 
Hash<E extends Entry> - Class in org.cache2k.impl
Fast hash table implementation.
Hash() - Constructor for class org.cache2k.impl.Hash
 
hashCode - Variable in class org.cache2k.impl.Entry
Hash implementation: the calculated, modified hash code, retrieved from the key when the entry is inserted in the cache
hashLoadPercent - Variable in class org.cache2k.impl.BaseCache.Tunable
Fill percentage limit.
hashSeed - Variable in class org.cache2k.impl.BaseCache
 
hashSeed - Variable in class org.cache2k.impl.BaseCache.Tunable
Seed used when randomization is disabled.
hasKeepAfterExpired() - Method in class org.cache2k.impl.BaseCache
 
hasNext() - Method in class org.cache2k.impl.ClosableConcurrentHashEntryIterator
 
hasNext() - Method in class org.cache2k.impl.DepthSearchAndSizeCounter
 
hasSharpTimeout() - Method in class org.cache2k.impl.BaseCache
 
hasSuppressExceptions() - Method in class org.cache2k.impl.BaseCache
 
highestIndexNumber - Variable in class org.cache2k.storage.ImageFileStorage.Tunable
 

I

idleTimeMillis - Variable in class org.cache2k.impl.threading.GlobalPooledExecutor.Tunable
Time a thread waits for a next task.
ImageFileStorage - Class in org.cache2k.storage
Implements a robust storage on a file or a byte buffer.
ImageFileStorage(ImageFileStorage.Tunable) - Constructor for class org.cache2k.storage.ImageFileStorage
 
ImageFileStorage() - Constructor for class org.cache2k.storage.ImageFileStorage
 
ImageFileStorage.Provider - Class in org.cache2k.storage
 
ImageFileStorage.Provider() - Constructor for class org.cache2k.storage.ImageFileStorage.Provider
 
ImageFileStorage.SlotBucket - Class in org.cache2k.storage
 
ImageFileStorage.SlotBucket() - Constructor for class org.cache2k.storage.ImageFileStorage.SlotBucket
 
ImageFileStorage.Tunable - Class in org.cache2k.storage
Some parameters factored out, which may be modified if needed.
ImageFileStorage.Tunable() - Constructor for class org.cache2k.storage.ImageFileStorage.Tunable
 
incrementSuppressExpandCount() - Method in class org.cache2k.impl.Hash
Usage/reference counter for iterations to suspend expand until the iteration finished.
index(Entry[], int) - Static method in class org.cache2k.impl.Hash
 
indexFileFactor - Variable in class org.cache2k.storage.ImageFileStorage.Tunable
Factor of the entry count in the storage to limit the index file size.
info - Variable in class org.cache2k.impl.BaseCache
 
info(String) - Method in class org.cache2k.impl.util.Log
 
info(String, Throwable) - Method in class org.cache2k.impl.util.Log
 
info(String, Throwable) - Method in class org.cache2k.impl.util.Log.SuppressionCounter
 
info(String) - Method in class org.cache2k.impl.util.Log.SuppressionCounter
 
init() - Method in class org.cache2k.impl.BaseCache
Registers the cache in a global set for the clearAllCaches function and registers it with the resource monitor.
init(Class<E>) - Method in class org.cache2k.impl.Hash
 
init() - Method in class org.cache2k.storage.FreeSpaceMap
 
initialHashSize - Variable in class org.cache2k.impl.BaseCache.Tunable
Size of the hash table before inserting the first entry.
initializeHeapCache() - Method in class org.cache2k.impl.ArcCache
 
initializeHeapCache() - Method in class org.cache2k.impl.BaseCache
 
initializeHeapCache() - Method in class org.cache2k.impl.ClockCache
 
initializeHeapCache() - Method in class org.cache2k.impl.ClockProPlusCache
 
initializeHeapCache() - Method in class org.cache2k.impl.LruCache
 
insert(E, T, long, long, byte) - Method in class org.cache2k.impl.BaseCache
Calculate the next refresh time if a timer / expiry is needed and call insert.
insert(E, T, long, long, byte, long) - Method in class org.cache2k.impl.BaseCache
 
insert(Object) - Method in class org.cache2k.impl.DepthSearchAndSizeCounter
 
insert(E[], Entry) - Method in class org.cache2k.impl.Hash
 
insert0HitsFromHotToColdHead - Variable in class org.cache2k.impl.ClockProPlusCache.Tunable
 
insertAfterHeadCyclicList(E, E) - Static method in class org.cache2k.impl.BaseCache
Insert X into A B C, yields: A X B C.
insertEntryFromStorage(StorageEntry, boolean) - Method in class org.cache2k.impl.BaseCache
Insert the storage entry in the heap cache and return it.
insertEntryFromStorage(StorageEntry, E, boolean) - Method in class org.cache2k.impl.BaseCache
 
insertFetched(E, T, long, long) - Method in class org.cache2k.impl.BaseCache
 
insertInList(Entry, Entry) - Static method in class org.cache2k.impl.BaseCache
 
insertIntoHeadCyclicList(E, E) - Static method in class org.cache2k.impl.BaseCache
Insert element at the head of the list
insertIntoReplacementList(ArcCache.Entry) - Method in class org.cache2k.impl.ArcCache
 
insertIntoReplacementList(E) - Method in class org.cache2k.impl.BaseCache
New cache entry, put it in the replacement algorithm structure
insertIntoReplacementList(ClockCache.Entry) - Method in class org.cache2k.impl.ClockCache
 
insertIntoReplacementList(ClockProPlusCache.Entry) - Method in class org.cache2k.impl.ClockProPlusCache
 
insertIntoReplacementList(LruCache.Entry) - Method in class org.cache2k.impl.LruCache
 
insertIntoReplacementList(Entry) - Method in class org.cache2k.impl.RandomCache
 
insertIntoTailCyclicList(E, E) - Static method in class org.cache2k.impl.BaseCache
 
insertOnPut(E, T, long, long) - Method in class org.cache2k.impl.BaseCache
 
insertWoExpand(Entry[], Entry) - Static method in class org.cache2k.impl.Hash
 
IntegrityState - Class in org.cache2k.impl
Used to record and check the integrity.
IntegrityState() - Constructor for class org.cache2k.impl.IntegrityState
 
internalExceptionCnt - Variable in class org.cache2k.impl.BaseCache
An exception that should not have happened and was not thrown to the application.
invokeAll(Collection<? extends Callable<T>>) - Method in class org.cache2k.impl.threading.LimitedPooledExecutor
 
invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class org.cache2k.impl.threading.LimitedPooledExecutor
 
invokeAny(Collection<? extends Callable<T>>) - Method in class org.cache2k.impl.threading.LimitedPooledExecutor
Not supported.
invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class org.cache2k.impl.threading.LimitedPooledExecutor
Not supported.
isBeeingReput() - Method in class org.cache2k.impl.Entry
 
isCancelled() - Method in class org.cache2k.impl.threading.Futures.BusyWaitFuture
 
isCancelled() - Method in class org.cache2k.impl.threading.Futures.ExceptionFuture
 
isCancelled() - Method in class org.cache2k.impl.threading.Futures.FinishedFuture
 
isCancelled() - Method in class org.cache2k.impl.threading.Futures.WaitForAllFuture
Unsupported, it is not possible to implement useful semantics.
isCancelled() - Method in class org.cache2k.impl.timer.NoPayloadTask
 
isCancelled() - Method in class org.cache2k.impl.timer.PayloadTask
 
isCancelled() - Method in interface org.cache2k.impl.timer.TimerService.CancelHandle
 
isCleared() - Method in class org.cache2k.impl.Hash
Operations should terminate
isClosed() - Method in class org.cache2k.impl.BaseCache
 
isClosed() - Method in class org.cache2k.impl.Hash
Operations should terminate and throw a CacheClosedException
isClosed() - Method in class org.cache2k.storage.ImageFileStorage
 
isDataLost() - Method in class org.cache2k.storage.ImageFileStorage
Flag if there was a problem at the last startup and probably some data was lost.
isDataValidState() - Method in class org.cache2k.impl.Entry
The entry value was fetched and is valid, which means it can be returned by the cache.
isDebugEnabled() - Method in class org.cache2k.impl.util.Log
 
isDebugEnabled() - Method in class org.cache2k.impl.util.Log.SuppressionCounter
 
isDestroyed() - Method in class org.cache2k.impl.CacheManagerImpl
 
isDirty() - Method in class org.cache2k.impl.Entry
Memory entry needs to be send to the storage.
isDone() - Method in class org.cache2k.impl.threading.Futures.BusyWaitFuture
 
isDone() - Method in class org.cache2k.impl.threading.Futures.ExceptionFuture
 
isDone() - Method in class org.cache2k.impl.threading.Futures.FinishedFuture
 
isDone() - Method in class org.cache2k.impl.threading.Futures.WaitForAllFuture
True, if every future is done or no future is contained.
isExpiredState() - Method in class org.cache2k.impl.Entry
The entry expired, but still in the cache.
isFetchInProgress() - Method in class org.cache2k.impl.Entry
 
isFetchNextTimeState() - Method in class org.cache2k.impl.Entry
 
isGettingRefresh() - Method in class org.cache2k.impl.Entry
 
isInfoEnabled() - Method in class org.cache2k.impl.util.Log
 
isInfoEnabled() - Method in class org.cache2k.impl.util.Log.SuppressionCounter
 
isLoadedNonValid() - Method in class org.cache2k.impl.Entry
 
isLoadedNonValidAndFetch() - Method in class org.cache2k.impl.Entry
 
isPinned() - Method in class org.cache2k.impl.Entry
Entry is not allowed to be evicted
isRemovedFromReplacementList() - Method in class org.cache2k.impl.Entry
Check that this entry is removed from the list, may be used in assertions.
isRemovedState() - Method in class org.cache2k.impl.Entry
 
isShutdown() - Method in class org.cache2k.impl.threading.LimitedPooledExecutor
 
isStale() - Method in class org.cache2k.impl.Entry
 
isTerminated() - Method in class org.cache2k.impl.threading.LimitedPooledExecutor
 
isTransferringToStorage() - Method in class org.cache2k.impl.ClearStorageBuffer
 
isVirgin() - Method in class org.cache2k.impl.Entry
 
iterateAll() - Method in class org.cache2k.impl.AggregationStorageAdapter
Use the last storage, which should be the biggest and contain all entries.
iterateAll() - Method in class org.cache2k.impl.FailureStorageAdapter
 
iterateAll() - Method in class org.cache2k.impl.NoopStorageAdapter
 
iterateAll() - Method in class org.cache2k.impl.PassingStorageAdapter
 
iterateAll() - Method in class org.cache2k.impl.StorageAdapter
 
iterateAllHeapEntries() - Method in class org.cache2k.impl.BaseCache
Returns all cache entries within the heap cache.
iterateLocalAndStorage() - Method in class org.cache2k.impl.BaseCache
Complete iteration of all entries in the cache, including storage / persisted entries.
iterationQueueCapacity - Variable in class org.cache2k.impl.PassingStorageAdapter.Tunable
If the iteration client needs more time then the read threads, the queue fills up.
iterator() - Method in class org.cache2k.impl.BaseCache
 
iterator() - Method in class org.cache2k.impl.CacheManagerImpl
 
iterator() - Method in class org.cache2k.storage.ImageFileStorage.SlotBucket
 

K

key - Variable in class org.cache2k.impl.Entry
 
keyMutationCount - Variable in class org.cache2k.impl.BaseCache
 
keyType - Variable in class org.cache2k.impl.BaseCache
 

L

LimitedPooledExecutor - Class in org.cache2k.impl.threading
ExecutorService that forwards the tasks to the GlobalPooledExecutor.
LimitedPooledExecutor(GlobalPooledExecutor) - Constructor for class org.cache2k.impl.threading.LimitedPooledExecutor
 
LimitedPooledExecutor(GlobalPooledExecutor, LimitedPooledExecutor.Tunable) - Constructor for class org.cache2k.impl.threading.LimitedPooledExecutor
 
LimitedPooledExecutor.ExceptionListener - Interface in org.cache2k.impl.threading
 
LimitedPooledExecutor.NeverRunInCallingTask<V> - Interface in org.cache2k.impl.threading
Marker interface for a Callable to indicate that we need the calling task to continue after the submit and a new thread for the Callable.
LimitedPooledExecutor.Tunable - Class in org.cache2k.impl.threading
 
LimitedPooledExecutor.Tunable() - Constructor for class org.cache2k.impl.threading.LimitedPooledExecutor.Tunable
 
loadHitCnt - Variable in class org.cache2k.impl.BaseCache
Entry was loaded from storage and fresh.
loadMissCnt - Variable in class org.cache2k.impl.BaseCache
Storage did not contain the requested entry.
loadNonFreshAndFetchedCnt - Variable in class org.cache2k.impl.BaseCache
Separate counter for loaded entries that needed a fetch.
loadNonFreshCnt - Variable in class org.cache2k.impl.BaseCache
Loaded from storage, but the entry was not fresh and cannot be returned.
lock - Variable in class org.cache2k.impl.BaseCache
Structure lock of the cache.
lockAndRun(Object, PurgeableStorage.PurgeAction) - Method in interface org.cache2k.storage.PurgeableStorage.PurgeContext
Runs the action under the entry lock for the key.
lockAndRunForPurge(Object, PurgeableStorage.PurgeAction) - Method in class org.cache2k.impl.BaseCache
Insert a cache entry for the given key and run action under the entry lock.
LockFreeCache<E extends Entry,K,T> - Class in org.cache2k.impl
 
LockFreeCache() - Constructor for class org.cache2k.impl.LockFreeCache
 
Log - Class in org.cache2k.impl.util
cache2k has only sparse logging.
Log() - Constructor for class org.cache2k.impl.util.Log
 
Log.SuppressionCounter - Class in org.cache2k.impl.util
Log implementation that can be used to count suppressed log outputs.
Log.SuppressionCounter() - Constructor for class org.cache2k.impl.util.Log.SuppressionCounter
 
LogFactory - Interface in org.cache2k.impl.util
Service provider interface to implement to reroute cache2k logging to another log implementation.
logLifecycleOperation(String) - Method in class org.cache2k.impl.PassingStorageAdapter
By default log lifecycle operations as info.
logSourceExceptions - Variable in class org.cache2k.impl.BaseCache.Tunable
Log exceptions from the source just as they happen.
lookup(E[], Object, int) - Static method in class org.cache2k.impl.Hash
 
lookupEntry(K, int) - Method in class org.cache2k.impl.BaseCache
 
lookupEntrySynchronized(K) - Method in class org.cache2k.impl.BaseCache
 
lookupEntryUnsynchronized(K, int) - Method in class org.cache2k.impl.BaseCache
Implement unsynchronized lookup if it is supported by the eviction.
lookupEntryUnsynchronized(K, int) - Method in class org.cache2k.impl.LockFreeCache
 
lookupOrNewEntrySynchronized(K) - Method in class org.cache2k.impl.BaseCache
Lookup or create a new entry.
lookupOrNewEntrySynchronized(K) - Method in class org.cache2k.impl.LockFreeCache
First lookup in the hash unsynchronized, if missed, do synchronize and try again.
LruCache<K,T> - Class in org.cache2k.impl
Cache implementation with LRU eviction algorithm.
LruCache() - Constructor for class org.cache2k.impl.LruCache
 
LruCache.Entry<K,T> - Class in org.cache2k.impl
 
LruCache.Entry() - Constructor for class org.cache2k.impl.LruCache.Entry
 

M

mainHash - Variable in class org.cache2k.impl.BaseCache
 
mainHashCtrl - Variable in class org.cache2k.impl.BaseCache
 
manager - Variable in class org.cache2k.impl.BaseCache
 
managerCreated(CacheManager) - Method in interface org.cache2k.impl.CacheManagerLifeCycleListener
 
managerDestroyed(CacheManager) - Method in interface org.cache2k.impl.CacheManagerLifeCycleListener
 
marshall(Object) - Method in interface org.cache2k.storage.Marshaller
 
marshall(Object) - Method in class org.cache2k.storage.StandardMarshaller
 
Marshaller - Interface in org.cache2k.storage
 
MarshallerFactory - Interface in org.cache2k.storage
 
MarshallerFactory.Parameters - Class in org.cache2k.storage
 
MarshallerFactory.Parameters(Class<?>) - Constructor for class org.cache2k.storage.MarshallerFactory.Parameters
 
Marshallers - Class in org.cache2k.storage
Singleton which provides a top level MarshallerFactory which in turn delegates to marshaller factories that are registered via the service loader.
Marshallers() - Constructor for class org.cache2k.storage.Marshallers
 
maxFill - Variable in class org.cache2k.impl.Hash
 
maximumBulkFetchSize - Variable in class org.cache2k.impl.BaseCache
 
maximumEntryLockSpins - Variable in class org.cache2k.impl.BaseCache.Tunable
Limits the number of spins until an entry lock is expected to succeed.
maximumEvictSpins - Variable in class org.cache2k.impl.BaseCache.Tunable
Maximum number of tries to find an entry for eviction if maximum size is reached.
maxLinger - Variable in class org.cache2k.impl.BaseCache
Time in milliseconds we keep an element
maxSize - Variable in class org.cache2k.impl.BaseCache
Maximum amount of elements in cache
maxThreadCount - Variable in class org.cache2k.impl.threading.LimitedPooledExecutor.Tunable
For now we use the available processor count as limit throughout.
modifiedHash(int) - Method in class org.cache2k.impl.BaseCache
This function calculates a modified hash code.
moveToFront(E, E) - Static method in class org.cache2k.impl.BaseCache
 

N

name - Variable in class org.cache2k.impl.BaseCache
 
needMetaData() - Method in interface org.cache2k.storage.CacheStorage.VisitContext
True if entries should have metadata.
needsTimeCheck() - Method in class org.cache2k.impl.Entry
 
needValue() - Method in interface org.cache2k.storage.CacheStorage.VisitContext
True if entries should have the value field set with the storage contents.
newCache(Cache) - Method in class org.cache2k.impl.CacheManagerImpl
 
newEntry() - Method in class org.cache2k.impl.ArcCache
Emtpy, done by replace / checkForGhost.
newEntry() - Method in class org.cache2k.impl.BaseCache
Entry object factory.
newEntry(K, int) - Method in class org.cache2k.impl.BaseCache
Insert new entry in all structures (hash and replacement list).
newEntry() - Method in class org.cache2k.impl.ClockCache
 
newEntry() - Method in class org.cache2k.impl.ClockProPlusCache
 
newEntry() - Method in class org.cache2k.impl.LruCache
 
newEntry() - Method in class org.cache2k.impl.RandomCache
 
newEntryCnt - Variable in class org.cache2k.impl.BaseCache
 
newThread(Runnable) - Method in class org.cache2k.impl.threading.GlobalThreadFactory
 
newThreadFactory(Properties, String) - Method in class org.cache2k.impl.threading.DefaultThreadFactoryProvider
 
newThreadFactory(Properties, String) - Method in interface org.cache2k.impl.threading.ThreadFactoryProvider
Construct a new thread factory for the pool.
next() - Method in class org.cache2k.impl.ClosableConcurrentHashEntryIterator
 
next - Variable in class org.cache2k.impl.Entry
Lru list: pointer to next element or list head
nextRefreshTime - Variable in class org.cache2k.impl.Entry
Contains the next time a refresh has to occur.
NoopStorageAdapter - Class in org.cache2k.impl
 
NoopStorageAdapter(BaseCache) - Constructor for class org.cache2k.impl.NoopStorageAdapter
 
NoPayloadTask - Class in org.cache2k.impl.timer
 
NoPayloadTask(long, TimerListener) - Constructor for class org.cache2k.impl.timer.NoPayloadTask
 
notifyEvicted(StorageEntry) - Method in interface org.cache2k.storage.CacheStorageContext
 
notifyExpired(StorageEntry) - Method in interface org.cache2k.storage.CacheStorageContext
 

O

onFlushTimerEvent() - Method in class org.cache2k.impl.PassingStorageAdapter
 
open() - Method in class org.cache2k.impl.AggregationStorageAdapter
 
open() - Method in class org.cache2k.impl.FailureStorageAdapter
 
open() - Method in class org.cache2k.impl.NoopStorageAdapter
 
open() - Method in class org.cache2k.impl.PassingStorageAdapter
 
open() - Method in class org.cache2k.impl.StorageAdapter
 
open(CacheStorageContext, StorageConfiguration<Void>) - Method in class org.cache2k.storage.ByReferenceHeapStorageImpl
 
open(CacheStorageContext, StorageConfiguration) - Method in class org.cache2k.storage.ImageFileStorage
 
org.cache2k.impl - package org.cache2k.impl
 
org.cache2k.impl.threading - package org.cache2k.impl.threading
 
org.cache2k.impl.timer - package org.cache2k.impl.timer
 
org.cache2k.impl.util - package org.cache2k.impl.util
 
org.cache2k.storage - package org.cache2k.storage
 

P

PassingStorageAdapter - Class in org.cache2k.impl
Passes cache operation to the storage layer.
PassingStorageAdapter(BaseCache, CacheConfig, StorageConfiguration) - Constructor for class org.cache2k.impl.PassingStorageAdapter
 
PassingStorageAdapter.Tunable - Class in org.cache2k.impl
 
PassingStorageAdapter.Tunable() - Constructor for class org.cache2k.impl.PassingStorageAdapter.Tunable
 
PayloadTask<T> - Class in org.cache2k.impl.timer
 
PayloadTask(long, T, TimerPayloadListener<T>) - Constructor for class org.cache2k.impl.timer.PayloadTask
 
peek(K) - Method in class org.cache2k.impl.BaseCache
 
peekEntry(K) - Method in class org.cache2k.impl.BaseCache
 
peekEntryInternal(K) - Method in class org.cache2k.impl.BaseCache
Return the entry, if it is in the cache, without invoking the cache source.
peekHitNotFreshCnt - Variable in class org.cache2k.impl.BaseCache
 
peekMissCnt - Variable in class org.cache2k.impl.BaseCache
 
prefetch(K) - Method in class org.cache2k.impl.BaseCache
 
prefetch(List<K>, int, int) - Method in class org.cache2k.impl.BaseCache
 
prefetch(Set<K>) - Method in class org.cache2k.impl.BaseCache
 
prev - Variable in class org.cache2k.impl.Entry
Lru list: pointer to previous element or list head
purge() - Method in class org.cache2k.impl.AggregationStorageAdapter
 
purge() - Method in class org.cache2k.impl.BaseCache
 
purge(PurgeableStorage.PurgeContext, long, long) - Method in class org.cache2k.impl.ClearStorageBuffer
Does nothing.
purge() - Method in class org.cache2k.impl.FailureStorageAdapter
 
purge() - Method in class org.cache2k.impl.NoopStorageAdapter
 
purge() - Method in class org.cache2k.impl.PassingStorageAdapter
 
purge() - Method in class org.cache2k.impl.StorageAdapter
 
purge(PurgeableStorage.PurgeContext, long, long) - Method in interface org.cache2k.storage.PurgeableStorage
Removes all entries which have an expiry time before or equal to the given time.
PurgeableStorage - Interface in org.cache2k.storage
 
PurgeableStorage.PurgeAction - Interface in org.cache2k.storage
 
PurgeableStorage.PurgeContext - Interface in org.cache2k.storage
 
PurgeableStorage.PurgeResult - Interface in org.cache2k.storage
Statistics
put(Entry, long) - Method in class org.cache2k.impl.AggregationStorageAdapter
Send put to all storage instances.
put(K, T) - Method in class org.cache2k.impl.BaseCache
 
put(StorageEntry) - Method in class org.cache2k.impl.ClearStorageBuffer
 
put(Entry, long) - Method in class org.cache2k.impl.FailureStorageAdapter
 
put(Entry, long) - Method in class org.cache2k.impl.NoopStorageAdapter
 
put(Entry, long) - Method in class org.cache2k.impl.PassingStorageAdapter
Store entry on cache put.
put(Entry, long) - Method in class org.cache2k.impl.StorageAdapter
 
put(StorageEntry) - Method in class org.cache2k.storage.ByReferenceHeapStorageImpl
 
put(StorageEntry) - Method in interface org.cache2k.storage.CacheStorage
Stores the entry in the storage.
put(FreeSpaceMap.Slot) - Method in class org.cache2k.storage.FreeSpaceMap
 
put(StorageEntry) - Method in class org.cache2k.storage.ImageFileStorage
Store a new entry.
putCnt - Variable in class org.cache2k.impl.BaseCache
 
putIfAbsent(K, T) - Method in class org.cache2k.impl.BaseCache
 
putNewEntryCnt - Variable in class org.cache2k.impl.BaseCache
 

Q

queueSize - Variable in class org.cache2k.impl.threading.GlobalPooledExecutor.Tunable
Waiting task queue size.

R

RandomCache<K,T> - Class in org.cache2k.impl
Random eviction without usage counters.
RandomCache() - Constructor for class org.cache2k.impl.RandomCache
 
randomIdleTimeMillis - Variable in class org.cache2k.impl.threading.GlobalPooledExecutor.Tunable
A random value gets added to the idle time.
randomizeIdleTime - Variable in class org.cache2k.impl.threading.GlobalPooledExecutor.Tunable
Idle time is extended by a random interval between 0 and GlobalPooledExecutor.Tunable.randomIdleTimeMillis.
read() - Method in class org.cache2k.storage.ByteBufferInputStream
 
read(byte[], int, int) - Method in class org.cache2k.storage.ByteBufferInputStream
 
readCompressedLong(ByteBuffer) - Static method in class org.cache2k.storage.ImageFileStorage
 
recordHit(ArcCache.Entry) - Method in class org.cache2k.impl.ArcCache
 
recordHit(E) - Method in class org.cache2k.impl.BaseCache
Record an entry hit.
recordHit(ClockCache.Entry) - Method in class org.cache2k.impl.ClockCache
 
recordHit(ClockProPlusCache.Entry) - Method in class org.cache2k.impl.ClockProPlusCache
 
recordHit(LruCache.Entry) - Method in class org.cache2k.impl.LruCache
 
recordHit(Entry) - Method in class org.cache2k.impl.RandomCache
 
refreshCnt - Variable in class org.cache2k.impl.BaseCache
 
refreshHash - Variable in class org.cache2k.impl.BaseCache
 
refreshHashCtrl - Variable in class org.cache2k.impl.BaseCache
 
refreshHitCnt - Variable in class org.cache2k.impl.BaseCache
 
refreshPool - Variable in class org.cache2k.impl.BaseCache
 
refreshSubmitFailedCnt - Variable in class org.cache2k.impl.BaseCache
 
registerMarshallerFactory(MarshallerFactory) - Method in class org.cache2k.storage.Marshallers
Directly register a marshallerfactory.
registerSuppression(String, Log) - Static method in class org.cache2k.impl.util.Log
Redirects log output, this is used for testing purposes.
reload() - Static method in class org.cache2k.impl.util.TunableFactory
Reload the tunable configuration from the system properties and the configuration file.
remove(Object) - Method in class org.cache2k.impl.AggregationStorageAdapter
 
remove(K) - Method in class org.cache2k.impl.BaseCache
 
remove(Object) - Method in class org.cache2k.impl.ClearStorageBuffer
 
remove() - Method in class org.cache2k.impl.ClosableConcurrentHashEntryIterator
 
remove(Object) - Method in class org.cache2k.impl.FailureStorageAdapter
 
remove(Entry[], Entry) - Method in class org.cache2k.impl.Hash
 
remove(E[], Object, int) - Method in class org.cache2k.impl.Hash
Remove entry from the hash.
remove(Object) - Method in class org.cache2k.impl.NoopStorageAdapter
 
remove(Object) - Method in class org.cache2k.impl.PassingStorageAdapter
 
remove(Object) - Method in class org.cache2k.impl.StorageAdapter
 
remove(Object) - Method in class org.cache2k.storage.ByReferenceHeapStorageImpl
 
remove(Object) - Method in interface org.cache2k.storage.CacheStorage
 
remove(Object) - Method in class org.cache2k.storage.ImageFileStorage
 
removeAllAtOnce(Set<K>) - Method in class org.cache2k.impl.BaseCache
 
removedCnt - Variable in class org.cache2k.impl.BaseCache
 
removedFromList() - Method in class org.cache2k.impl.Entry
Reset next as a marker for Entry.isRemovedFromReplacementList()
removeEntry(E) - Method in class org.cache2k.impl.BaseCache
Remove the entry from the hash and the replacement list.
removeEntryFromReplacementList(ArcCache.Entry) - Method in class org.cache2k.impl.ArcCache
 
removeEntryFromReplacementList(E) - Method in class org.cache2k.impl.BaseCache
 
removeEntryFromReplacementList(ClockCache.Entry) - Method in class org.cache2k.impl.ClockCache
 
removeEntryFromReplacementList(ClockProPlusCache.Entry) - Method in class org.cache2k.impl.ClockProPlusCache
We are called to remove the entry.
removeEntryFromReplacementList(Entry) - Method in class org.cache2k.impl.RandomCache
 
removeFromCyclicList(E, E) - Static method in class org.cache2k.impl.BaseCache
 
removeFromCyclicList(Entry) - Static method in class org.cache2k.impl.BaseCache
 
removeFromList(Entry) - Static method in class org.cache2k.impl.BaseCache
 
removeWithFlag(K) - Method in class org.cache2k.impl.BaseCache
Remove the object mapped to a key from the cache.
requestMaintenanceCall(int) - Method in interface org.cache2k.storage.CacheStorageContext
 
reserveSlotEndingAt(long) - Method in class org.cache2k.storage.FreeSpaceMap
Get the slot that ends at the position exclusive or: start + size = pos
resetCounter() - Method in class org.cache2k.impl.DepthSearchAndSizeCounter
Reset our counters but keep the lookup set of the objects seen so far.
resetDirty() - Method in class org.cache2k.impl.Entry
 
resetStorage(StorageAdapter, StorageAdapter) - Method in class org.cache2k.impl.AggregationStorageAdapter
 
resetStorage(StorageAdapter, StorageAdapter) - Method in class org.cache2k.impl.BaseCache
 
rethrow(String, Throwable) - Static method in class org.cache2k.impl.StorageAdapter
 
returnEntry(Entry<E, K, T>) - Method in class org.cache2k.impl.BaseCache
Wrap entry in a separate object instance.
returnValue(Entry<E, K, T>) - Method in class org.cache2k.impl.BaseCache
 
rewriteCompleteFactor - Variable in class org.cache2k.storage.ImageFileStorage.Tunable
 
rewritePartialFactor - Variable in class org.cache2k.storage.ImageFileStorage.Tunable
 
run() - Method in class org.cache2k.impl.BaseCache.MyTimerTask
 
runHandGhost() - Method in class org.cache2k.impl.ClockProPlusCache
 
runHandHot() - Method in class org.cache2k.impl.ClockProPlusCache
 

S

SerializingMarshallerFactory - Class in org.cache2k.storage
 
SerializingMarshallerFactory() - Constructor for class org.cache2k.storage.SerializingMarshallerFactory
 
setBulkCacheSource(BulkCacheSource<K, T>) - Method in class org.cache2k.impl.BaseCache
 
setCacheConfig(CacheConfig) - Method in class org.cache2k.impl.BaseCache
called via reflection from CacheBuilder
setCacheManager(CacheManagerImpl) - Method in class org.cache2k.impl.BaseCache
 
setEntryExpiryCalculator(EntryExpiryCalculator<K, T>) - Method in class org.cache2k.impl.BaseCache
 
setException(Throwable) - Method in class org.cache2k.impl.Entry
 
setExceptionExpiryCalculator(ExceptionExpiryCalculator<K>) - Method in class org.cache2k.impl.BaseCache
 
setExceptionListener(LimitedPooledExecutor.ExceptionListener) - Method in class org.cache2k.impl.threading.LimitedPooledExecutor
 
setExperimentalBulkCacheSource(ExperimentalBulkCacheSource<K, T>) - Method in class org.cache2k.impl.BaseCache
 
setExpiredState() - Method in class org.cache2k.impl.Entry
Entry is kept in the cache but has expired
setExpirySeconds(int) - Method in class org.cache2k.impl.BaseCache
Set the time in seconds after which the cache does an refresh of the element.
setFeatureBit(int, boolean) - Method in class org.cache2k.impl.BaseCache
 
setGettingRefresh() - Method in class org.cache2k.impl.Entry
 
setHotMax(int) - Method in class org.cache2k.impl.ClockProPlusCache
 
setKeepIterated(boolean) - Method in class org.cache2k.impl.ClosableConcurrentHashEntryIterator
Keep hash of iterated items, needed for storage iteration.
setLastModification(long) - Method in class org.cache2k.impl.Entry
 
setLastModificationFromStorage(long) - Method in class org.cache2k.impl.Entry
 
setLoadedNonValidAndFetch() - Method in class org.cache2k.impl.Entry
 
setMarshallerConfiguration(Object) - Method in class org.cache2k.storage.MarshallerFactory.Parameters
 
setMarshallerFactory(Class<?>) - Method in class org.cache2k.storage.MarshallerFactory.Parameters
 
setMarshallerType(Class<?>) - Method in class org.cache2k.storage.MarshallerFactory.Parameters
 
setName(String) - Method in class org.cache2k.impl.BaseCache
Set the name and configure a logging, used within cache construction.
setPayloadType(Class<?>) - Method in class org.cache2k.storage.MarshallerFactory.Parameters
 
setRefreshController(RefreshController<T>) - Method in class org.cache2k.impl.BaseCache
called via reflection from CacheBuilder
setRemovedState() - Method in class org.cache2k.impl.Entry
 
setSource(CacheSourceWithMetaInfo<K, T>) - Method in class org.cache2k.impl.BaseCache
 
setSource(CacheSource<K, T>) - Method in class org.cache2k.impl.BaseCache
 
setStale() - Method in class org.cache2k.impl.Entry
 
setStopOnClear(boolean) - Method in class org.cache2k.impl.ClosableConcurrentHashEntryIterator
Iterations stops when storage is cleared, default is true.
setValue(T) - Method in class org.cache2k.impl.Entry
 
sharpExpirySafetyGapMillis - Variable in class org.cache2k.impl.BaseCache.Tunable
When sharp expiry is enabled, the expiry timer goes before the actual expiry to switch back to a time checking scheme when the get method is invoked.
shortCircuit() - Method in class org.cache2k.impl.Entry
 
shouldAbort() - Method in class org.cache2k.impl.Hash
 
shouldInclude(Object) - Method in interface org.cache2k.storage.CacheStorage.EntryFilter
 
shouldStop() - Method in interface org.cache2k.storage.CacheStorage.MultiThreadedContext
True if the operation should stop immediately.
shutdown() - Method in class org.cache2k.impl.AggregationStorageAdapter
 
shutdown() - Method in class org.cache2k.impl.FailureStorageAdapter
 
shutdown() - Method in class org.cache2k.impl.NoopStorageAdapter
 
shutdown() - Method in class org.cache2k.impl.PassingStorageAdapter
 
shutdown() - Method in class org.cache2k.impl.StorageAdapter
 
shutdown() - Method in class org.cache2k.impl.threading.LimitedPooledExecutor
 
shutdownInitiated - Variable in class org.cache2k.impl.BaseCache
 
shutdownNow() - Method in class org.cache2k.impl.threading.LimitedPooledExecutor
shutdownWaitFuture - Variable in class org.cache2k.impl.BaseCache
Stuff that we need to wait for before shutdown may complete
size - Variable in class org.cache2k.impl.Hash
 
source - Variable in class org.cache2k.impl.BaseCache
 
StandardMarshaller - Class in org.cache2k.storage
A standard marshaller implementation, based on serialization.
StandardMarshaller() - Constructor for class org.cache2k.storage.StandardMarshaller
 
startedTime - Variable in class org.cache2k.impl.BaseCache
 
startFetch() - Method in class org.cache2k.impl.Entry
Starts long operation on entry.
startInput(InputStream) - Method in interface org.cache2k.storage.Marshaller
 
startInput(InputStream) - Method in class org.cache2k.storage.StandardMarshaller
 
startOutput(OutputStream) - Method in interface org.cache2k.storage.Marshaller
 
startOutput(OutputStream) - Method in class org.cache2k.storage.StandardMarshaller
 
startTransfer() - Method in class org.cache2k.impl.ClearStorageBuffer
 
stopStartTimer(long, E, long) - Method in class org.cache2k.impl.BaseCache
 
storage - Variable in class org.cache2k.impl.BaseCache
 
StorageAdapter - Class in org.cache2k.impl
 
StorageAdapter() - Constructor for class org.cache2k.impl.StorageAdapter
 
StorageEntry - Interface in org.cache2k.storage
 
submit(Runnable) - Method in class org.cache2k.impl.CacheRefreshThreadPool
 
submit(Callable<T>) - Method in class org.cache2k.impl.threading.LimitedPooledExecutor
 
submit(Runnable, T) - Method in class org.cache2k.impl.threading.LimitedPooledExecutor
 
submit(Runnable) - Method in class org.cache2k.impl.threading.LimitedPooledExecutor
 
supports(Object) - Method in interface org.cache2k.storage.Marshaller
True if the marshaller is able to marshall this object.
supports(Object) - Method in class org.cache2k.storage.StandardMarshaller
 
suppressedExceptionCnt - Variable in class org.cache2k.impl.BaseCache
 
switchAndCheckAbort() - Method in class org.cache2k.impl.ClosableConcurrentHashEntryIterator
 

T

task - Variable in class org.cache2k.impl.Entry
 
taskFinished() - Method in interface org.cache2k.impl.threading.GlobalPooledExecutor.ProgressNotifier
 
taskFinishedWithException(Throwable) - Method in interface org.cache2k.impl.threading.GlobalPooledExecutor.ProgressNotifier
 
taskStarted() - Method in interface org.cache2k.impl.threading.GlobalPooledExecutor.ProgressNotifier
 
terminationInfoSeconds - Variable in class org.cache2k.impl.PassingStorageAdapter.Tunable
Thread termination writes a info log message, if we still wait for termination.
terminationTimeoutSeconds - Variable in class org.cache2k.impl.PassingStorageAdapter.Tunable
Maximum time to await the termination of all executor threads.
THREAD_COUNT - Static variable in class org.cache2k.impl.CacheRefreshThreadPool
 
ThreadDump - Class in org.cache2k.impl.util
Thread dump generation, inspired from: http://crunchify.com/how-to-generate-java-thread-dump-programmatically/
ThreadDump() - Constructor for class org.cache2k.impl.util.ThreadDump
 
threadFactoryProvider - Variable in class org.cache2k.impl.threading.GlobalPooledExecutor.Tunable
 
ThreadFactoryProvider - Interface in org.cache2k.impl.threading
Provider interface for a thread factory.
throwIfNeeded() - Method in class org.cache2k.impl.IntegrityState
 
timer - Variable in class org.cache2k.impl.BaseCache
 
timerCancelCount - Variable in class org.cache2k.impl.BaseCache
 
timerEvent(E, long) - Method in class org.cache2k.impl.BaseCache
When the time has come remove the entry from the cache.
TimerListener - Interface in org.cache2k.impl.timer
 
TimerPayloadListener<T> - Interface in org.cache2k.impl.timer
 
timerService - Variable in class org.cache2k.impl.BaseCache
 
TimerService - Class in org.cache2k.impl.timer
Generic interface of a timer service.
TimerService() - Constructor for class org.cache2k.impl.timer.TimerService
 
TimerService.CancelHandle - Interface in org.cache2k.impl.timer
 
toString() - Method in class org.cache2k.impl.BaseCache
Return status information.
toString() - Method in class org.cache2k.impl.Entry
 
toString() - Method in class org.cache2k.impl.ExceptionWrapper
 
toString() - Method in class org.cache2k.impl.PassingStorageAdapter
 
toString() - Method in class org.cache2k.storage.FreeSpaceMap.Slot
 
toString() - Method in class org.cache2k.storage.ImageFileStorage
Prints out current state.
touchedTime - Variable in class org.cache2k.impl.BaseCache
 
transfer() - Method in class org.cache2k.impl.ClearStorageBuffer
 
TransientStorageClass - Interface in org.cache2k.storage
Marker interface for off heap or other(?) transient storage.
TUNABLE - Static variable in class org.cache2k.impl.BaseCache
 
TunableConstants - Class in org.cache2k.impl.util
Base class of all classes that contain code constants.
TunableConstants() - Constructor for class org.cache2k.impl.util.TunableConstants
 
TunableFactory - Class in org.cache2k.impl.util
Provides an instance of a tunable after applying changes taken from configuration file or system properties.
TunableFactory() - Constructor for class org.cache2k.impl.util.TunableFactory
 
TUNE_MARKER - Static variable in class org.cache2k.impl.util.TunableFactory
 

U

unmarshall(byte[]) - Method in interface org.cache2k.storage.Marshaller
 
unmarshall(ByteBuffer) - Method in interface org.cache2k.storage.Marshaller
 
unmarshall(byte[]) - Method in class org.cache2k.storage.StandardMarshaller
 
unmarshall(ByteBuffer) - Method in class org.cache2k.storage.StandardMarshaller
 
unregisterSuppression(String) - Static method in class org.cache2k.impl.util.Log
 
updateEntryExpireTime(Object, long) - Method in interface org.cache2k.storage.EntryExpiryUpdateableStorage
Update the expiry time of a stored entry.
updateEntryExpireTime(Object, long) - Method in class org.cache2k.storage.ImageFileStorage
 
updateShutdownWaitFuture(Future<?>) - Method in class org.cache2k.impl.BaseCache
 
useManagerThreadPool - Variable in class org.cache2k.impl.PassingStorageAdapter.Tunable
User global thread pool are a separate one.
Util - Class in org.cache2k.impl.util
A set of utility stuff we need often.
Util() - Constructor for class org.cache2k.impl.util.Util
 

V

value - Variable in class org.cache2k.impl.Entry
 
valueType - Variable in class org.cache2k.impl.BaseCache
 
virginEvictCnt - Variable in class org.cache2k.impl.BaseCache
A newly inserted entry was removed by the eviction without the fetch to complete.
visit(CacheStorage.VisitContext, CacheStorage.EntryFilter, CacheStorage.EntryVisitor) - Method in class org.cache2k.impl.ClearStorageBuffer
 
visit(CacheStorage.VisitContext, CacheStorage.EntryFilter, CacheStorage.EntryVisitor) - Method in class org.cache2k.storage.ByReferenceHeapStorageImpl
 
visit(StorageEntry) - Method in interface org.cache2k.storage.CacheStorage.EntryVisitor
 
visit(CacheStorage.VisitContext, CacheStorage.EntryFilter, CacheStorage.EntryVisitor) - Method in interface org.cache2k.storage.CacheStorage
Iterate over all stored entries and call the entry visitor.
visit(CacheStorage.VisitContext, CacheStorage.EntryFilter, CacheStorage.EntryVisitor) - Method in class org.cache2k.storage.ImageFileStorage
 

W

waitForClear - Variable in class org.cache2k.impl.BaseCache
Stops creation of new entries when clear is ongoing.
waitForFetch() - Method in class org.cache2k.impl.Entry
 
waitForTimerJobsSeconds - Variable in class org.cache2k.impl.BaseCache.Tunable
 
waitUntilAllDied() - Method in class org.cache2k.impl.threading.GlobalPooledExecutor
 
warn(String) - Method in class org.cache2k.impl.util.Log.SuppressionCounter
 
warn(String, Throwable) - Method in class org.cache2k.impl.util.Log.SuppressionCounter
 
warn(String) - Method in class org.cache2k.impl.util.Log
 
warn(String, Throwable) - Method in class org.cache2k.impl.util.Log
 
warningLimitThreadCount - Variable in class org.cache2k.impl.threading.GlobalPooledExecutor.Tunable
When this maximum thread count was reached once, an orange alert is issued.
wasWarningLimitReached() - Method in class org.cache2k.impl.threading.GlobalPooledExecutor
Used for alerting.
writeCompressedLong(ByteBuffer, long) - Static method in class org.cache2k.storage.ImageFileStorage
Write a long as multiple short values.
A B C D E F G H I K L M N O P Q R S T U V W 

cache2k API documentation. Copyright © 2000–2015 headissue GmbH, Munich.