| File was renamed from opends/src/server/org/opends/server/replication/server/changelog/api/ChangeNumberIndexDBCursor.java |
| | |
| | | import java.io.Closeable; |
| | | |
| | | /** |
| | | * Iterator into the changelog database. Once it is not used anymore, a |
| | | * ChangelogDBIterator must be closed to release all the resources into the |
| | | * Generic cursor interface into the changelog database. Once it is not used |
| | | * anymore, a cursor must be closed to release all the resources into the |
| | | * database. |
| | | * |
| | | * @param <T> |
| | | * type of the record being returned |
| | | */ |
| | | public interface ChangeNumberIndexDBCursor extends Closeable |
| | | public interface DBCursor<T> extends Closeable |
| | | { |
| | | |
| | | /** |
| | | * Getter for the record. |
| | | * Getter for the current record. |
| | | * |
| | | * @return The current {@link CNIndexRecord}. |
| | | * @return The current record. |
| | | */ |
| | | CNIndexRecord getRecord(); |
| | | T getRecord(); |
| | | |
| | | /** |
| | | * Skip to the next record of the database. |