Package org.jboss.weld.util.cache
Class ComputingCacheBuilder
java.lang.Object
org.jboss.weld.util.cache.ComputingCacheBuilder
A builder for
ComputingCache instances.- Author:
- Martin Kouba, Jozef Hartinger
-
Method Summary
Modifier and TypeMethodDescription<K,V> ComputingCache<K, V> static ComputingCacheBuildersetMaxSize(long maxSize) Values stored in the cache should be wrapped in aWeakReference.
-
Method Details
-
newBuilder
- Returns:
- a new builder instance
-
setMaxSize
- Parameters:
maxSize-- Returns:
- self
-
setWeakValues
Values stored in the cache should be wrapped in aWeakReference.- Returns:
- self
-
build
- Parameters:
computingFunction-- Returns:
- a new ComputingCache instance
-