public interface BasicAclEntryCache
BasicAclEntry
objects.
Implementations should provide appropriate methods to set their cache
parameters (eg time-to-live) and/or force removal of entities before their
normal expiration. These are not part of the
BasicAclEntryCache
interface contract because they vary
depending on the type of caching system used (eg in-memory vs disk vs
cluster vs hybrid).
Modifier and Type | Method and Description |
---|---|
BasicAclEntry[] |
getEntriesFromCache(AclObjectIdentity aclObjectIdentity)
Obtains an array of
BasicAclEntry s from the cache. |
void |
putEntriesInCache(BasicAclEntry[] basicAclEntry)
Places an array of
BasicAclEntry s in the cache. |
void |
removeEntriesFromCache(AclObjectIdentity aclObjectIdentity)
Removes all ACL entries related to an
AclObjectIdentity from the cache. |
BasicAclEntry[] getEntriesFromCache(AclObjectIdentity aclObjectIdentity)
BasicAclEntry
s from the cache.aclObjectIdentity
- which should be obtained from the cacheBasicAclEntry
s (no null
s are permitted in the returned array)
or null
if the object identity could not be found or if the cache entry has expiredvoid putEntriesInCache(BasicAclEntry[] basicAclEntry)
BasicAclEntry
s in the cache.No null
s are allowed in the
passed array. If any null
is passed, the implementation may throw an exception.
basicAclEntry
- the ACL entries to cache (the key will be extracted from the BasicAclEntry.getAclObjectIdentity()
methodvoid removeEntriesFromCache(AclObjectIdentity aclObjectIdentity)
AclObjectIdentity
from the cache.aclObjectIdentity
- which should be removed from the cacheCopyright © 2015. All rights reserved.