From 174074dccd4a4731728bfb274ed982534c45fde1 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Tue, 19 Aug 2014 10:06:35 +0000
Subject: [PATCH] Forward port of checkpoint commit for OPENDJ-1206 : Create a new ReplicationBackend/ChangelogBackend to support cn=changelog CR-4053
---
opendj3-server-dev/src/server/org/opends/server/replication/server/changelog/api/DBCursor.java | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/replication/server/changelog/api/DBCursor.java b/opendj3-server-dev/src/server/org/opends/server/replication/server/changelog/api/DBCursor.java
index ad658e4..1fe0714 100644
--- a/opendj3-server-dev/src/server/org/opends/server/replication/server/changelog/api/DBCursor.java
+++ b/opendj3-server-dev/src/server/org/opends/server/replication/server/changelog/api/DBCursor.java
@@ -60,6 +60,29 @@
{
/**
+ * Represents a cursor key matching strategy, which allow to choose if only
+ * the exact key must be found or if any key equals or higher should match.
+ */
+ public enum KeyMatchingStrategy {
+ /** matches only if the exact key is found. */
+ EQUAL_TO_KEY,
+ /** matches if the key or a greater key is found. */
+ GREATER_THAN_OR_EQUAL_TO_KEY
+ }
+
+ /**
+ * Represents a cursor positioning strategy, which allow to choose if the start point
+ * corresponds to the record at the provided key or the record just after the provided
+ * key.
+ */
+ public enum PositionStrategy {
+ /** start point is on the matching key. */
+ ON_MATCHING_KEY,
+ /** start point is after the matching key. */
+ AFTER_MATCHING_KEY
+ }
+
+ /**
* Getter for the current record.
*
* @return The current record.
--
Gitblit v1.10.0