public class DefaultCachedSupplier<T> extends Object implements CachedSupplier<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DefaultCachedSupplier.CacheValidator<T> |
static class |
DefaultCachedSupplier.SimpleCacheValidator<T> |
CachedSupplier.NCacheLevel| Constructor and Description |
|---|
DefaultCachedSupplier(CachedSupplier.NCacheLevel level,
Class<T> clazz,
NStoreKey key,
Supplier<T> supplier,
DefaultCachedSupplier.CacheValidator<T> validator) |
| Modifier and Type | Method and Description |
|---|---|
T |
getValue() |
T |
getValue(CachedSupplier.NCacheLevel level) |
static <T> DefaultCachedSupplier<T> |
of(CachedSupplier.NCacheLevel level,
Class<T> clazz,
NStoreKey key,
Supplier<T> supplier,
DefaultCachedSupplier.CacheValidator<T> validator) |
static <T> DefaultCachedSupplier<T> |
ofMem(Supplier<T> supplier,
DefaultCachedSupplier.CacheValidator<T> validator) |
static <T> DefaultCachedSupplier<T> |
ofNone(Supplier<T> supplier) |
static <T> DefaultCachedSupplier<T> |
ofStore(Class<T> clazz,
NStoreKey key,
Supplier<T> supplier,
DefaultCachedSupplier.CacheValidator<T> validator) |
public DefaultCachedSupplier(CachedSupplier.NCacheLevel level, Class<T> clazz, NStoreKey key, Supplier<T> supplier, DefaultCachedSupplier.CacheValidator<T> validator)
public static <T> DefaultCachedSupplier<T> ofMem(Supplier<T> supplier, DefaultCachedSupplier.CacheValidator<T> validator)
public static <T> DefaultCachedSupplier<T> ofNone(Supplier<T> supplier)
public static <T> DefaultCachedSupplier<T> ofStore(Class<T> clazz, NStoreKey key, Supplier<T> supplier, DefaultCachedSupplier.CacheValidator<T> validator)
public static <T> DefaultCachedSupplier<T> of(CachedSupplier.NCacheLevel level, Class<T> clazz, NStoreKey key, Supplier<T> supplier, DefaultCachedSupplier.CacheValidator<T> validator)
public T getValue()
getValue in interface CachedSupplier<T>public T getValue(CachedSupplier.NCacheLevel level)
getValue in interface CachedSupplier<T>Copyright © 2026 vpc open source initiative. All rights reserved.