Class DBCursor.CursorOptions
java.lang.Object
org.opends.server.replication.server.changelog.api.DBCursor.CursorOptions
Options to create a cursor.
-
Constructor Summary
ConstructorsConstructorDescriptionCursorOptions(DBCursor.PositionStrategy strategy) Creates options with provided positioning strategy.CursorOptions(DBCursor.PositionStrategy strategy, CSN defaultCSN) Creates options with provided positioning strategy and default CSN. -
Method Summary
-
Constructor Details
-
CursorOptions
Creates options with provided positioning strategy.- Parameters:
strategy- The positioning strategy
-
CursorOptions
Creates options with provided positioning strategy and default CSN.- Parameters:
strategy- The positioning strategydefaultCSN- The default CSN to use for replica DB cursors without an associated CSN. May benull. When creating a replica DB Cursor, some replicas may not have an associated CSN within the provided server state / multi-domain server state. In that case, the cursors will be opened relative to this CSN, in accordance with the supplied positioning strategy. For example, providing a default CSN withDBCursor.PositionStrategy.GREATER_THAN_OR_EQUAL_TO_KEYmeans the cursor will first return the record immediately newer than the provided default CSN.
-
-
Method Details
-
getPositionStrategy
Returns the positioning strategy.- Returns:
- the positioning strategy
-
getDefaultCSN
Returns the default CSN.- Returns:
- the default CSN
-
equals
-
hashCode
public int hashCode() -
toString
-