Package org.apache.zookeeper.server
Class ReferenceCountedACLCache
- java.lang.Object
- 
- org.apache.zookeeper.server.ReferenceCountedACLCache
 
- 
 public class ReferenceCountedACLCache extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description ReferenceCountedACLCache()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUsage(Long acl)LongconvertAcls(List<ACL> acls)converts the list of acls to a long.List<ACL>convertLong(Long longVal)converts a long to a list of acls.voiddeserialize(InputArchive ia)voidpurgeUnused()voidremoveUsage(Long acl)voidserialize(OutputArchive oa)intsize()
 
- 
- 
- 
Method Detail- 
convertAclspublic 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
 
 - 
convertLongpublic 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
 
 - 
deserializepublic void deserialize(InputArchive ia) throws IOException - Throws:
- IOException
 
 - 
serializepublic void serialize(OutputArchive oa) throws IOException - Throws:
- IOException
 
 - 
sizepublic int size() 
 - 
addUsagepublic void addUsage(Long acl) 
 - 
removeUsagepublic void removeUsage(Long acl) 
 - 
purgeUnusedpublic void purgeUnused() 
 
- 
 
-