Class ReferenceCountedACLCache


  • public class ReferenceCountedACLCache
    extends java.lang.Object
    • Constructor Detail

      • ReferenceCountedACLCache

        public ReferenceCountedACLCache()
    • Method Detail

      • convertAcls

        public java.lang.Long convertAcls​(java.util.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 java.util.List<ACL> convertLong​(java.lang.Long longVal)
        converts a long to a list of acls.
        Parameters:
        longVal -
        Returns:
        a list of ACLs that map to the long
      • deserialize

        public void deserialize​(InputArchive ia)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • serialize

        public void serialize​(OutputArchive oa)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • size

        public int size()
      • addUsage

        public void addUsage​(java.lang.Long acl)
      • removeUsage

        public void removeUsage​(java.lang.Long acl)
      • purgeUnused

        public void purgeUnused()