public class SubentryCache extends Object implements Iterable<org.apache.directory.api.ldap.model.name.Dn>
| Constructor and Description |
|---|
SubentryCache()
Creates a new instance of SubentryCache with a default maximum size.
|
SubentryCache(int maxSize)
Creates a new instance of SubentryCache with a specific maximum size.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.directory.api.ldap.model.subtree.Subentry |
addSubentry(org.apache.directory.api.ldap.model.name.Dn dn,
org.apache.directory.api.ldap.model.subtree.Subentry subentry)
Stores a new Subentry into the cache, associated with a Dn
|
int |
getCacheSize() |
org.apache.directory.api.ldap.model.subtree.Subentry |
getSubentry(org.apache.directory.api.ldap.model.name.Dn dn)
Retrieve a Subentry given a Dn.
|
boolean |
hasSubentry(org.apache.directory.api.ldap.model.name.Dn dn)
Tells if there is a Subentry associated with a Dn
|
Iterator<org.apache.directory.api.ldap.model.name.Dn> |
iterator() |
org.apache.directory.api.ldap.model.subtree.Subentry |
removeSubentry(org.apache.directory.api.ldap.model.name.Dn dn)
Remove a Subentry for a given Dn
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic SubentryCache()
public SubentryCache(int maxSize)
public final org.apache.directory.api.ldap.model.subtree.Subentry getSubentry(org.apache.directory.api.ldap.model.name.Dn dn)
dn - The Dn we want to get the Subentry forpublic final org.apache.directory.api.ldap.model.subtree.Subentry removeSubentry(org.apache.directory.api.ldap.model.name.Dn dn)
dn - The Dn for which we want to remove the
associated Subentrypublic org.apache.directory.api.ldap.model.subtree.Subentry addSubentry(org.apache.directory.api.ldap.model.name.Dn dn,
org.apache.directory.api.ldap.model.subtree.Subentry subentry)
dn - The Subentry Dnss - The SubtreeSpecificationadminRoles - The administrative roles for this Subentrypublic boolean hasSubentry(org.apache.directory.api.ldap.model.name.Dn dn)
dn - The Dnpublic Iterator<org.apache.directory.api.ldap.model.name.Dn> iterator()
public int getCacheSize()
Copyright © 2021. All rights reserved.