Package org.cache2k.addon
Class UniversalResilienceSupplier<K,V>
- java.lang.Object
-
- org.cache2k.addon.UniversalResilienceSupplier<K,V>
-
- All Implemented Interfaces:
org.cache2k.config.CustomizationSupplier<org.cache2k.io.ResiliencePolicy<K,V>>
,org.cache2k.config.WithSection<UniversalResilienceConfig,UniversalResilienceConfig.Builder>
public class UniversalResilienceSupplier<K,V> extends Object implements org.cache2k.config.CustomizationSupplier<org.cache2k.io.ResiliencePolicy<K,V>>, org.cache2k.config.WithSection<UniversalResilienceConfig,UniversalResilienceConfig.Builder>
Supplier for aUniversalResiliencePolicy
. The supplier can be used to enable resilience and derive useful values from the basic cache configuration.- Author:
- Jens Wilke
-
-
Constructor Summary
Constructors Constructor Description UniversalResilienceSupplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<UniversalResilienceConfig>
getConfigClass()
org.cache2k.io.ResiliencePolicy<K,V>
supply(org.cache2k.config.CacheBuildContext buildContext)
-
-
-
Method Detail
-
supply
public org.cache2k.io.ResiliencePolicy<K,V> supply(org.cache2k.config.CacheBuildContext buildContext)
- Specified by:
supply
in interfaceorg.cache2k.config.CustomizationSupplier<K>
-
getConfigClass
public Class<UniversalResilienceConfig> getConfigClass()
-
-