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, wait
forEach, spliterator
public SubentryCache()
public SubentryCache(int maxSize)
maxSize
- The max number of elements in teh cachepublic 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 Dnsubentry
- The SubtreeSpecificationpublic boolean hasSubentry(org.apache.directory.api.ldap.model.name.Dn dn)
dn
- The Dnpublic int getCacheSize()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.