Uses of Class
org.cache2k.annotation.Nullable
-
Packages that use Nullable Package Description org.cache2k Main package for cache2k API containing functions to build and access a cache.org.cache2k.config The cache configuration as a Java bean and support types.org.cache2k.expiry Set of interfaces for customizing the expiry behavior.org.cache2k.integration Loader and writer to integrate with external data sources.org.cache2k.io Loader and writer to integrate with external data sources.org.cache2k.operation Operational aspects of a cache, like accessing statistics, basic information, change runtime parameters and customizations that augment general behavior.org.cache2k.processor Entry processor and supporting types for custom atomic operations on a cache entry. -
-
Uses of Nullable in org.cache2k
Methods in org.cache2k with annotations of type Nullable Modifier and Type Method Description VAbstractCache. get(K key)VCache. get(K key)Returns a value associated with the given key.VForwardingCache. get(K key)VKeyValueSource. get(K key)Returns a value associated with this key.@Nullable CacheEntry<K,V>Cache. getEntry(K key)Returns an entry that contains the cache value associated with the given key.@Nullable CacheEntry<K,V>ForwardingCache. getEntry(K key)default @Nullable ThrowableCacheEntry. getException()The exception happened when the value was loaded and the exception could not be suppressed.@Nullable LoadExceptionInfo<K,V>CacheEntry. getExceptionInfo()Detailed information of latest exception from the loader ornullif no exception happened or it was suppressed.<@Nullable R>
RCache. invoke(K key, EntryProcessor<K,V,@Nullable R> processor)Invoke a user defined function on a cache entry.VCache. peek(K key)Returns the value associated to the given key.VForwardingCache. peek(K key)VCache. peekAndPut(K key, V value)Updates an existing cache entry for the specified key, so it associates the given value, or, insert a new cache entry for this key and value.VForwardingCache. peekAndPut(K key, V value)VAbstractCache. peekAndRemove(K key)VCache. peekAndRemove(K key)Removes the mapping for a key from the cache if it is present.VForwardingCache. peekAndRemove(K key)VAbstractCache. peekAndReplace(K key, V value)VCache. peekAndReplace(K key, V value)Replaces the entry for a key only if currently mapped to some value.VForwardingCache. peekAndReplace(K key, V value)@Nullable CacheEntry<K,V>Cache. peekEntry(K key)Returns an entry that contains the cache value associated with the given key.@Nullable CacheEntry<K,V>ForwardingCache. peekEntry(K key) -
Uses of Nullable in org.cache2k.config
Method parameters in org.cache2k.config with annotations of type Nullable Modifier and Type Method Description booleanCustomizationReferenceSupplier. equals(@Nullable Object other)booleanCustomizationSupplierByClassName. equals(@Nullable Object other)booleanToggleFeature. equals(@Nullable Object o)Identical if its the same implementation class.voidCache2kConfig. setAdvancedLoader(@Nullable CustomizationSupplier<? extends AdvancedCacheLoader<K,V>> v)voidCache2kConfig. setAsyncListenerExecutor(@Nullable CustomizationSupplier<? extends Executor> v)voidCache2kConfig. setAsyncLoader(@Nullable CustomizationSupplier<? extends AsyncCacheLoader<K,V>> v)voidCache2kConfig. setCacheWrapper(@Nullable CacheWrapper cacheWrapper)voidCache2kConfig. setExceptionPropagator(@Nullable CustomizationSupplier<? extends ExceptionPropagator<? super K,? super V>> v)voidCache2kConfig. setExecutor(@Nullable CustomizationSupplier<? extends Executor> v)voidCache2kConfig. setExpireAfterWrite(@Nullable Duration v)Sets expire after write.voidCache2kConfig. setExpiryPolicy(@Nullable CustomizationSupplier<? extends ExpiryPolicy<? super K,? super V>> v)voidCache2kConfig. setKeyType(@Nullable CacheType<K> v)voidCache2kConfig. setLoader(@Nullable CustomizationSupplier<? extends CacheLoader<K,V>> v)voidCache2kConfig. setLoaderExecutor(@Nullable CustomizationSupplier<? extends Executor> v)voidCache2kConfig. setName(@Nullable String name)voidCache2kConfig. setRefreshExecutor(@Nullable CustomizationSupplier<? extends Executor> v)voidCache2kConfig. setResiliencePolicy(@Nullable CustomizationSupplier<? extends ResiliencePolicy<? super K,? super V>> v)voidCache2kConfig. setTimerLag(@Nullable Duration v)voidCache2kConfig. setTraceCacheWrapper(@Nullable CacheWrapper traceCacheWrapper)voidCache2kConfig. setValueType(@Nullable CacheType<V> v)voidCache2kConfig. setWeigher(@Nullable CustomizationSupplier<? extends Weigher<K,V>> v)voidCache2kConfig. setWriter(@Nullable CustomizationSupplier<? extends CacheWriter<K,V>> v) -
Uses of Nullable in org.cache2k.expiry
Method parameters in org.cache2k.expiry with annotations of type Nullable Modifier and Type Method Description longExpiryPolicy. calculateExpiryTime(K key, V value, long loadTime, @Nullable CacheEntry<K,V> currentEntry)Returns the time of expiry in milliseconds since epoch. -
Uses of Nullable in org.cache2k.integration
Methods in org.cache2k.integration with annotations of type Nullable Modifier and Type Method Description @Nullable LoadDetail<V>LoadDetail. getNextInChain()Deprecated.Method parameters in org.cache2k.integration with annotations of type Nullable Modifier and Type Method Description abstract VAdvancedCacheLoader. load(K key, long startTime, @Nullable CacheEntry<K,V> currentEntry)Deprecated.Retrieves or generates data based on the key parameter. -
Uses of Nullable in org.cache2k.io
Method parameters in org.cache2k.io with annotations of type Nullable Modifier and Type Method Description VAdvancedCacheLoader. load(K key, long startTime, @Nullable CacheEntry<K,V> currentEntry)Retrieves or generates data based on the key parameter. -
Uses of Nullable in org.cache2k.operation
Methods in org.cache2k.operation with annotations of type Nullable Modifier and Type Method Description @Nullable InstantCacheInfo. getClearedTime()Time of the most recentCache.clear()operation. -
Uses of Nullable in org.cache2k.processor
Methods in org.cache2k.processor with annotations of type Nullable Modifier and Type Method Description @Nullable ThrowableEntryProcessingResult. getException()Original exception of entry processing ornullif no exception occurred.@Nullable ThrowableMutableCacheEntry. getException()The exception happened when the value was loaded and the exception could not be suppressed.@Nullable LoadExceptionInfo<K,V>MutableCacheEntry. getExceptionInfo()Detailed information of latest exception from the loader ornullif no exception happened or it was suppressed.REntryProcessingResult. getResult()Result of entry processing.VMutableCacheEntry. getValue()Returns the value to which the cache associated the key, ornullif the cache contains no mapping for this key.default VMutableCacheEntry. getValueOrNull()REntryProcessor. process(MutableCacheEntry<K,V> entry)Examines or mutates an entry.
-