Class DBCursor.CursorOptions

  • Enclosing interface:
    DBCursor<T>

    public static final class DBCursor.CursorOptions
    extends Object
    Options to create a cursor.
    • 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 strategy
        defaultCSN - The default CSN to use for replica DB cursors without an associated CSN. May be null. 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 with DBCursor.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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object