From bd3c137fd2e1fa9e13289ab0573e07f9a4212e05 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 30 Aug 2013 09:56:47 +0000
Subject: [PATCH] OPENDJ-1116 Introduce abstraction for the changelog DB

---
 opends/src/server/org/opends/server/replication/server/changelog/api/ReplicationDBCursor.java |   29 ++++++++++++++---------------
 1 files changed, 14 insertions(+), 15 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/server/changelog/api/ReplicationIterator.java b/opends/src/server/org/opends/server/replication/server/changelog/api/ReplicationDBCursor.java
similarity index 66%
rename from opends/src/server/org/opends/server/replication/server/changelog/api/ReplicationIterator.java
rename to opends/src/server/org/opends/server/replication/server/changelog/api/ReplicationDBCursor.java
index 90383b3..74e69d4 100644
--- a/opends/src/server/org/opends/server/replication/server/changelog/api/ReplicationIterator.java
+++ b/opends/src/server/org/opends/server/replication/server/changelog/api/ReplicationDBCursor.java
@@ -31,32 +31,31 @@
 import org.opends.server.replication.protocol.UpdateMsg;
 
 /**
- * This interface allows to iterate through the changes received from a given
+ * This cursor allows to iterate through the changes received from a given
  * LDAP Server Identifier.
  */
-public interface ReplicationIterator extends Closeable
+public interface ReplicationDBCursor extends Closeable
 {
 
   /**
-   * Get the UpdateMsg where the iterator is currently set.
-   *
-   * @return The UpdateMsg where the iterator is currently set.
-   */
+	 * Get the UpdateMsg where the cursor is currently set.
+	 * 
+	 * @return The UpdateMsg where the cursor is currently set.
+	 */
   UpdateMsg getChange();
 
   /**
-   * Go to the next change in the ReplicationDB or in the server Queue.
-   *
-   * @return false if the iterator is already on the last change before this
-   *         call.
-   */
+	 * Go to the next change in the ReplicationDB or in the server Queue.
+	 * 
+	 * @return false if the cursor is already on the last change before this call.
+	 */
   boolean next();
 
   /**
-   * Release the resources and locks used by this Iterator. This method must be
-   * called when the iterator is no longer used. Failure to do it could cause DB
-   * deadlock.
-   */
+	 * Release the resources and locks used by this cursor. This method must be
+	 * called when the cursor is no longer used. Failure to do it could cause DB
+	 * deadlock.
+	 */
   @Override
   void close();
 

--
Gitblit v1.10.0