Class DBCursor.CursorOptions
- java.lang.Object
-
- org.opends.server.replication.server.changelog.api.DBCursor.CursorOptions
-
-
Constructor Summary
Constructors Constructor Description CursorOptions(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
CSN
getDefaultCSN()
Returns the default CSN.DBCursor.PositionStrategy
getPositionStrategy()
Returns the positioning strategy.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
CursorOptions
public CursorOptions(DBCursor.PositionStrategy strategy)
Creates options with provided positioning strategy.- Parameters:
strategy
- The positioning strategy
-
CursorOptions
public CursorOptions(DBCursor.PositionStrategy strategy, CSN defaultCSN)
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_KEY
means the cursor will first return the record immediately newer than the provided default CSN.
-
-
Method Detail
-
getPositionStrategy
public DBCursor.PositionStrategy getPositionStrategy()
Returns the positioning strategy.- Returns:
- the positioning strategy
-
getDefaultCSN
public CSN getDefaultCSN()
Returns the default CSN.- Returns:
- the default CSN
-
-