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.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 V
AbstractCache. get(K key)
V
Cache. get(K key)
Returns a value associated with the given key.V
ForwardingCache. get(K key)
V
KeyValueSource. 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 Throwable
CacheEntry. 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 the latest exception from the loader.<@Nullable R>
RCache. invoke(K key, EntryProcessor<K,V,@Nullable R> processor)
Invoke a user defined function on a cache entry.V
Cache. peek(K key)
Returns the value associated to the given key.V
ForwardingCache. peek(K key)
V
Cache. 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.V
ForwardingCache. peekAndPut(K key, V value)
V
AbstractCache. peekAndRemove(K key)
V
Cache. peekAndRemove(K key)
Removes the mapping for a key from the cache if it is present.V
ForwardingCache. peekAndRemove(K key)
V
AbstractCache. peekAndReplace(K key, V value)
V
Cache. peekAndReplace(K key, V value)
Replaces the entry for a key only if currently mapped to some value.V
ForwardingCache. 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)
Method parameters in org.cache2k with annotations of type Nullable Modifier and Type Method Description Cache2kBuilder<K,V>
Cache2kBuilder. name(@Nullable String uniqueName, Class<?> clazz, String fieldName)
Constructs a cache name out of the class name, a field name and a unique name identifying the component in the application.Constructor parameters in org.cache2k with annotations of type Nullable Constructor Description CacheException(@Nullable String message, @Nullable Throwable cause, boolean enableSuppression, boolean writableStackTrace)
CacheException(@Nullable String message, @Nullable Throwable cause, boolean enableSuppression, boolean writableStackTrace)
-
Uses of Nullable in org.cache2k.config
Method parameters in org.cache2k.config with annotations of type Nullable Modifier and Type Method Description boolean
CustomizationReferenceSupplier. equals(@Nullable Object other)
boolean
CustomizationSupplierByClassName. equals(@Nullable Object other)
boolean
ToggleFeature. equals(@Nullable Object o)
Identical if it is the same implementation class.void
Cache2kConfig. setAdvancedLoader(@Nullable CustomizationSupplier<? extends AdvancedCacheLoader<K,V>> v)
void
Cache2kConfig. setAsyncListenerExecutor(@Nullable CustomizationSupplier<? extends Executor> v)
void
Cache2kConfig. setAsyncLoader(@Nullable CustomizationSupplier<? extends AsyncCacheLoader<K,V>> v)
void
Cache2kConfig. setCacheWrapper(@Nullable CacheWrapper cacheWrapper)
void
Cache2kConfig. setExceptionPropagator(@Nullable CustomizationSupplier<? extends ExceptionPropagator<? super K,? super V>> v)
void
Cache2kConfig. setExecutor(@Nullable CustomizationSupplier<? extends Executor> v)
void
Cache2kConfig. setExpireAfterWrite(@Nullable Duration v)
Sets expire after write.void
Cache2kConfig. setExpiryPolicy(@Nullable CustomizationSupplier<? extends ExpiryPolicy<? super K,? super V>> v)
void
Cache2kConfig. setIdleScanTime(@Nullable Duration v)
void
Cache2kConfig. setKeyType(@Nullable CacheType<K> v)
void
Cache2kConfig. setLoader(@Nullable CustomizationSupplier<? extends CacheLoader<K,V>> v)
void
Cache2kConfig. setLoaderExecutor(@Nullable CustomizationSupplier<? extends Executor> v)
void
Cache2kConfig. setName(@Nullable String name)
void
Cache2kConfig. setRefreshExecutor(@Nullable CustomizationSupplier<? extends Executor> v)
void
Cache2kConfig. setResiliencePolicy(@Nullable CustomizationSupplier<? extends ResiliencePolicy<? super K,? super V>> v)
void
Cache2kConfig. setTimerLag(@Nullable Duration v)
void
Cache2kConfig. setTraceCacheWrapper(@Nullable CacheWrapper traceCacheWrapper)
void
Cache2kConfig. setValueType(@Nullable CacheType<V> v)
void
Cache2kConfig. setWeigher(@Nullable CustomizationSupplier<? extends Weigher<K,V>> v)
void
Cache2kConfig. 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 long
ExpiryPolicy. calculateExpiryTime(K key, V value, long startTime, @Nullable CacheEntry<K,V> currentEntry)
Returns the time of expiry in milliseconds since epoch.long
ExpiryPolicy. calculateExpiryTime(K key, V value, long startTime, @Nullable CacheEntry<K,V> currentEntry)
Returns the time of expiry in milliseconds since epoch. -
Uses of Nullable in org.cache2k.io
Methods in org.cache2k.io with annotations of type Nullable Modifier and Type Method Description @Nullable CacheEntry<K,V>
AsyncCacheLoader.Context. getCurrentEntry()
Current entry in the cache.Method parameters in org.cache2k.io with annotations of type Nullable Modifier and Type Method Description V
AdvancedCacheLoader. 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 Instant
CacheInfo. 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 Throwable
EntryProcessingResult. getException()
Original exception from entry processing ornull
if no exception occurred.@Nullable Throwable
MutableCacheEntry. 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 the latest exception from the loader.R
EntryProcessingResult. getResult()
Result of entry processing.V
MutableCacheEntry. getValue()
Returns the value to which the cache associated the key, ornull
if the cache contains no mapping for this key.R
EntryProcessor. process(MutableCacheEntry<K,V> entry)
Examines or mutates an entry.
-