Interface AutoCacheFactory
public interface AutoCacheFactory
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static final record
AutoCacheFactory.OnErrorContinue<E extends Throwable>
static final record
static final record
static final record
static interface
-
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <ID,
R, RRC, CTX extends CacheContext<ID, R, RRC, CTX>>
CacheFactory.CacheTransformer<ID, R, RRC, CTX> static <ID,
R, RRC, CTX extends CacheContext<ID, R, RRC, CTX>, U>
CacheFactory.CacheTransformer<ID, R, RRC, CTX> autoCache
(Supplier<reactor.core.publisher.Flux<U>> dataSourceSupplier, Predicate<U> isAddOrUpdateEvent, Function<U, R> cacheEventValueExtractor) static <ID,
R, RRC, CTX extends CacheContext<ID, R, RRC, CTX>>
CacheFactory.CacheTransformer<ID, R, RRC, CTX> autoCache
(reactor.core.publisher.Flux<R> dataSource) static <ID,
R, RRC, CTX extends CacheContext<ID, R, RRC, CTX>, U extends CacheEvent<R>>
CacheFactory.CacheTransformer<ID, R, RRC, CTX> autoCache
(reactor.core.publisher.Flux<U> dataSource, AutoCacheFactory.WindowingStrategy<U> windowingStrategy, AutoCacheFactory.ErrorHandler errorHandler, LifeCycleEventSource lifeCycleEventSource, reactor.core.scheduler.Scheduler scheduler, Function<CacheFactory<ID, R, RRC, CTX>, CacheFactory<ID, R, RRC, CTX>> cacheTransformer) static <ID,
R, RRC, CTX extends CacheContext<ID, R, RRC, CTX>, U>
CacheFactory.CacheTransformer<ID, R, RRC, CTX> autoCache
(reactor.core.publisher.Flux<U> dataSource, Predicate<U> isAddOrUpdateEvent, Function<U, R> cacheEventValueExtractor)
-
Field Details
-
MAX_WINDOW_SIZE
static final int MAX_WINDOW_SIZE- See Also:
-
logger
-
-
Method Details
-
autoCache
static <ID,R, CacheFactory.CacheTransformer<ID,RRC, CTX extends CacheContext<ID, R, RRC, CTX>> R, autoCacheRRC, CTX> (Supplier<reactor.core.publisher.Flux<R>> dataSourceSupplier) -
autoCache
static <ID,R, CacheFactory.CacheTransformer<ID,RRC, CTX extends CacheContext<ID, R, RRC, CTX>> R, autoCacheRRC, CTX> (reactor.core.publisher.Flux<R> dataSource) -
autoCache
static <ID,R, CacheFactory.CacheTransformer<ID,RRC, CTX extends CacheContext<ID, R, RRC, CTX>, U> R, autoCacheRRC, CTX> (Supplier<reactor.core.publisher.Flux<U>> dataSourceSupplier, Predicate<U> isAddOrUpdateEvent, Function<U, R> cacheEventValueExtractor) -
autoCache
static <ID,R, CacheFactory.CacheTransformer<ID,RRC, CTX extends CacheContext<ID, R, RRC, CTX>, U> R, autoCacheRRC, CTX> (reactor.core.publisher.Flux<U> dataSource, Predicate<U> isAddOrUpdateEvent, Function<U, R> cacheEventValueExtractor) -
autoCache
static <ID,R, CacheFactory.CacheTransformer<ID,RRC, CTX extends CacheContext<ID, R, RRC, CTX>, U extends CacheEvent<R>> R, autoCacheRRC, CTX> (reactor.core.publisher.Flux<U> dataSource, AutoCacheFactory.WindowingStrategy<U> windowingStrategy, AutoCacheFactory.ErrorHandler errorHandler, LifeCycleEventSource lifeCycleEventSource, reactor.core.scheduler.Scheduler scheduler, Function<CacheFactory<ID, R, RRC, CTX>, CacheFactory<ID, R, RRC, CTX>> cacheTransformer)
-