Package org.apache.zookeeper.server
Class ReferenceCountedACLCache
java.lang.Object
org.apache.zookeeper.server.ReferenceCountedACLCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
convertAcls
(List<ACL> acls) converts the list of acls to a long.convertLong
(Long longVal) converts a long to a list of acls.void
void
void
removeUsage
(Long acl) void
int
size()
-
Constructor Details
-
ReferenceCountedACLCache
public ReferenceCountedACLCache()
-
-
Method Details
-
convertAcls
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
converts a long to a list of acls.- Parameters:
longVal
-- Returns:
- a list of ACLs that map to the long
-
deserialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
size
public int size() -
addUsage
-
removeUsage
-
purgeUnused
public void purgeUnused()
-