接口的使用
org.redkale.util.ThrowSupplier
-
使用ThrowSupplier的程序包 程序包 说明 org.redkale.cached org.redkale.cached.spi -
-
org.redkale.cached中ThrowSupplier的使用
参数类型为ThrowSupplier的org.redkale.cached中的方法 修饰符和类型 方法 说明 <T> T
CachedManager. bothGetSet(String name, String key, Type type, boolean nullable, int localLimit, Duration localExpire, Duration remoteExpire, ThrowSupplier<T> supplier)
本地或远程获取缓存数据, 过期返回null<T> CompletableFuture<T>
CachedManager. bothGetSetAsync(String name, String key, Type type, boolean nullable, int localLimit, Duration localExpire, Duration remoteExpire, ThrowSupplier<CompletableFuture<T>> supplier)
本地或远程异步获取缓存数据, 过期返回null<T> T
CachedManager. localGetSet(String name, String key, Type type, boolean nullable, int localLimit, Duration expire, ThrowSupplier<T> supplier)
本地获取缓存数据, 过期返回null<T> CompletableFuture<T>
CachedManager. localGetSetAsync(String name, String key, Type type, boolean nullable, int localLimit, Duration expire, ThrowSupplier<CompletableFuture<T>> supplier)
本地异步获取缓存数据, 过期返回null<T> T
CachedManager. remoteGetSet(String name, String key, Type type, boolean nullable, Duration expire, ThrowSupplier<T> supplier)
远程获取缓存数据, 过期返回null<T> CompletableFuture<T>
CachedManager. remoteGetSetAsync(String name, String key, Type type, boolean nullable, Duration expire, ThrowSupplier<CompletableFuture<T>> supplier)
远程异步获取缓存数据, 过期返回null -
org.redkale.cached.spi中ThrowSupplier的使用
返回ThrowSupplier的org.redkale.cached.spi中的方法 修饰符和类型 方法 说明 protected <T> ThrowSupplier<CachedValue<T>>
CachedManagerService. toCacheSupplier(boolean nullable, ThrowSupplier<T> supplier)
将原始数据函数转换成获取CacheValue数据函数参数类型为ThrowSupplier的org.redkale.cached.spi中的方法 修饰符和类型 方法 说明 <T> T
CachedManagerService. bothGetSet(String name, String key, Type type, boolean nullable, int localLimit, Duration localExpire, Duration remoteExpire, ThrowSupplier<T> supplier)
远程获取缓存数据, 过期返回null<T> CompletableFuture<T>
CachedManagerService. bothGetSetAsync(String name, String key, Type type, boolean nullable, int localLimit, Duration localExpire, Duration remoteExpire, ThrowSupplier<CompletableFuture<T>> supplier)
远程异步获取缓存数据, 过期返回null<T> T
CachedAction. get(ThrowSupplier<T> supplier, Object... args)
protected <T> T
CachedManagerService. getSet(CachedManagerService.GetterFunc<CachedValue<T>> getter, CachedManagerService.SetterSyncFunc setter, String name, String key, Type type, boolean nullable, int localLimit, Duration expire, ThrowSupplier<T> supplier)
获取缓存数据, 过期返回nullprotected <T> CompletableFuture<T>
CachedManagerService. getSetAsync(CachedManagerService.GetterFunc<CompletableFuture<CachedValue<T>>> getter, CachedManagerService.SetterAsyncFunc setter, String name, String key, Type type, boolean nullable, int localLimit, Duration expire, ThrowSupplier<CompletableFuture<T>> supplier)
异步获取缓存数据, 过期返回null<T> T
CachedManagerService. localGetSet(String name, String key, Type type, boolean nullable, int localLimit, Duration expire, ThrowSupplier<T> supplier)
本地获取缓存数据, 过期返回null<T> CompletableFuture<T>
CachedManagerService. localGetSetAsync(String name, String key, Type type, boolean nullable, int localLimit, Duration expire, ThrowSupplier<CompletableFuture<T>> supplier)
本地异步获取缓存数据, 过期返回null<T> T
CachedManagerService. remoteGetSet(String name, String key, Type type, boolean nullable, Duration expire, ThrowSupplier<T> supplier)
远程获取缓存数据, 过期返回null<T> CompletableFuture<T>
CachedManagerService. remoteGetSetAsync(String name, String key, Type type, boolean nullable, Duration expire, ThrowSupplier<CompletableFuture<T>> supplier)
远程异步获取缓存数据, 过期返回nullprotected <T> ThrowSupplier<CachedValue<T>>
CachedManagerService. toCacheSupplier(boolean nullable, ThrowSupplier<T> supplier)
将原始数据函数转换成获取CacheValue数据函数
-