Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 377 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 377 Bytes

ConcurrentSoftHashMap

Implementation of ConcurrentSoftHashMap.

This is thread-safe Soft reference HashMap.

example of Usage:

import cz.b2b.jcl.util.ConcurrentSoftHashMap;

...

//The number of "hard" references to hold internally.
int hardSize = 100;
private Map<String, Object> CACHE = new ConcurrentSoftHashMap<>(hardSize);
CACHE.put("first", new ArrayList());