public final class ECLMultiDomainDBCursor extends Object implements DBCursor<UpdateRecord>
DBCursor.CursorOptions, DBCursor.PositionStrategy
Constructor and Description |
---|
ECLMultiDomainDBCursor(Predicate<Dn> isEclEnabledDomain,
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.
|
UpdateRecord |
getRecord()
Getter for the current record.
|
boolean |
next()
Skip to the next record of the database.
|
String |
toString() |
public ECLMultiDomainDBCursor(Predicate<Dn> isEclEnabledDomain, MultiDomainDBCursor cursor)
isEclEnabledDomain
- tells whether a domain is enabled for the external changelogcursor
- the cursor whose updates will be filteredpublic UpdateRecord getRecord()
DBCursor
This method will always return null
when
DBCursor.next()
returns false
DBCursor.next()
.getRecord
in interface DBCursor<UpdateRecord>
null
.public boolean next() throws ChangelogException
DBCursor
next
in interface DBCursor<UpdateRecord>
ChangelogException
- When database exception raised.public void close()
DBCursor
close
in interface Closeable
close
in interface AutoCloseable
close
in interface DBCursor<UpdateRecord>
Copyright 2010-2022 ForgeRock AS.