Package io.helidon.common.configurable
Class LruCache.Builder<K,V>
java.lang.Object
io.helidon.common.configurable.LruCache.Builder<K,V>
- Type Parameters:
K
- type of keysV
- type of values
- All Implemented Interfaces:
Builder<LruCache.Builder<K,
,V>, LruCache<K, V>> Supplier<LruCache<K,
V>>
public static class LruCache.Builder<K,V>
extends Object
implements Builder<LruCache.Builder<K,V>,LruCache<K,V>>
Fluent API builder for
LruCache
.-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder. -
config
Load configuration of this cache from configuration.- Parameters:
config
- configuration- Returns:
- updated builder instance
-
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
-