Class LRURealmIdentityCache

    • Field Detail

      • DEFAULT_LOAD_FACTOR

        private static final float DEFAULT_LOAD_FACTOR
        The load factor.
        See Also:
        Constant Field Values
      • domainPrincipalMap

        private final Map<Principal,​Set<Principal>> domainPrincipalMap
        Holds a mapping between a realm principal and domain principals
      • maxAge

        private final long maxAge
    • Constructor Detail

      • LRURealmIdentityCache

        public LRURealmIdentityCache​(int maxEntries)
        Creates a new instance.
        Parameters:
        maxEntries - the maximum number of entries to keep in the cache
      • LRURealmIdentityCache

        public LRURealmIdentityCache​(int maxEntries,
                                     long maxAge)
        Creates a new instance.
        Parameters:
        maxEntries - the maximum number of entries to keep in the cache
        maxAge - the time in milliseconds that an entry can stay in the cache. If -1, entries never expire