Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
CSN |
getDefaultCSN()
Returns the default CSN.
|
DBCursor.PositionStrategy |
getPositionStrategy()
Returns the positioning strategy.
|
int |
hashCode() |
String |
toString() |
public CursorOptions(DBCursor.PositionStrategy strategy)
strategy
- The positioning strategypublic CursorOptions(DBCursor.PositionStrategy strategy, CSN defaultCSN)
strategy
- The positioning strategydefaultCSN
- 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.public DBCursor.PositionStrategy getPositionStrategy()
public CSN getDefaultCSN()
Copyright 2010-2018 ForgeRock AS.