Package io.helidon.common.configurable
Class LruCache.Builder<K,V>
- java.lang.Object
-
- io.helidon.common.configurable.LruCache.Builder<K,V>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LruCache<K,V>
build()
Build the instance from this builder.LruCache.Builder<K,V>
capacity(int capacity)
Configure capacity of the cache.LruCache.Builder<K,V>
config(Config config)
Load configuration of this cache from configuration.
-
-
-
Method Detail
-
build
public LruCache<K,V> build()
Description copied from interface:Builder
Build the instance from this builder.
-
config
public LruCache.Builder<K,V> config(Config config)
Load configuration of this cache from configuration.- Parameters:
config
- configuration- Returns:
- updated builder instance
-
capacity
public LruCache.Builder<K,V> capacity(int capacity)
Configure capacity of the cache.- Parameters:
capacity
- maximal number of records in the cache before the oldest one is removed- Returns:
- updated builder instance
-
-