public final class ECLMultiDomainDBCursor extends Object implements DBCursor<UpdateMsg>
DBCursor.CursorOptions, DBCursor.KeyMatchingStrategy, DBCursor.PositionStrategy
Constructor and Description |
---|
ECLMultiDomainDBCursor(ECLEnabledDomainPredicate predicate,
MultiDomainDBCursor cursor)
Builds an instance of this class filtering updates from the provided cursor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Release the resources and locks used by this Iterator.
|
org.forgerock.opendj.ldap.Dn |
getData()
Returns the data associated to the cursor that returned the current record.
|
UpdateMsg |
getRecord()
Getter for the current record.
|
boolean |
next()
Skip to the next record of the database.
|
void |
removeDomain(org.forgerock.opendj.ldap.Dn baseDN)
Removes a replication domain from this cursor and stops iterating over it.
|
boolean |
shouldReInitialize()
Returns whether the cursor should be reinitialized because a domain became re-enabled.
|
String |
toString() |
public ECLMultiDomainDBCursor(ECLEnabledDomainPredicate predicate, MultiDomainDBCursor cursor)
predicate
- tells whether a domain is enabled for the external changelogcursor
- the cursor whose updates will be filteredpublic org.forgerock.opendj.ldap.Dn getData()
public void removeDomain(org.forgerock.opendj.ldap.Dn baseDN)
next()
.baseDN
- the replication domain's baseDNpublic boolean shouldReInitialize()
public boolean next() throws ChangelogException
DBCursor
next
in interface DBCursor<UpdateMsg>
ChangelogException
- When database exception raised.public void close()
DBCursor
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.