Class ReferenceCountedACLCache


  • public class ReferenceCountedACLCache
    extends Object
    • Constructor Detail

      • ReferenceCountedACLCache

        public ReferenceCountedACLCache()
    • Method Detail

      • convertAcls

        public Long convertAcls​(List<ACL> acls)
        converts the list of acls to a long. Increments the reference counter for this ACL.
        Parameters:
        acls -
        Returns:
        a long that map to the acls
      • convertLong

        public List<ACL> convertLong​(Long longVal)
        converts a long to a list of acls.
        Parameters:
        longVal -
        Returns:
        a list of ACLs that map to the long
      • size

        public int size()
      • addUsage

        public void addUsage​(Long acl)
      • removeUsage

        public void removeUsage​(Long acl)
      • purgeUnused

        public void purgeUnused()