Class ConcurrentTypeCache

  • All Implemented Interfaces:
    java.io.Serializable

    public class ConcurrentTypeCache
    extends ResolvedTypeCache
    Alternative ResolvedTypeCache implementation that uses ConcurrentHashMap for efficient concurrent access and limits maximum entry count to specified maximum. But instead of trying to optimize retention by access (as LRUTypeCache does, will simply clear (remove all entries) if maximum size is reached. This works well as long as maximum size is large enough to cover most commonly resolved types, and works well for higher concurrency use cases.
    See Also:
    LRUTypeCache, Serialized Form