| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ConcurrentSoftCache(int
initial capacity of the cache initialCapacity, int max size of the cache maxSize, EvictableCache.LRU or FIFO, see evictionStrategyorg.Constructs a cache with limited size |
| public | ConcurrentSoftCache(int
initial capacity of the LRU cache initialCapacity, int max size of the LRU cache maxSize)Constructs a LRU cache with the specified initial capacity and max size. |
| public | ConcurrentSoftCache(int
max size of the LRU cache maxSize)Constructs a LRU cache with the default initial capacity(16) |
| public | ConcurrentSoftCache(Map<K, SoftReference<V>>
the map)java. instanceConstructs a cache backed by the specified |
| Modifier and Type | Method and Description |
|---|---|
| public Object | convertValue(SoftReference<V>
the original value value)Overrides org. Implements org. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| ConcurrentSoftCache | back to summary |
|---|---|
| public ConcurrentSoftCache() Constructs a cache with unlimited size | |
| ConcurrentSoftCache | back to summary |
|---|---|
| public ConcurrentSoftCache(int initialCapacity, int maxSize, EvictableCache. Constructs a cache with limited size
| |
| ConcurrentSoftCache | back to summary |
|---|---|
| public ConcurrentSoftCache(int initialCapacity, int maxSize) Constructs a LRU cache with the specified initial capacity and max size.
The LRU cache is slower than
| |
| ConcurrentSoftCache | back to summary |
|---|---|
| public ConcurrentSoftCache(int maxSize) Constructs a LRU cache with the default initial capacity(16)
| |
| ConcurrentSoftCache | back to summary |
|---|---|
| public ConcurrentSoftCache(Map<K, SoftReference<V>> map) Constructs a cache backed by the specified
| |
| convertValue | back to summary |
|---|---|
| public Object convertValue(SoftReference<V> value) Overrides org. Implements org. Doc from org. convert the original value to the target value
| |