Constructor and Description |
---|
CursorOptions(DBCursor.KeyMatchingStrategy keyMatchingStrategy,
DBCursor.PositionStrategy positionStrategy)
Creates options with provided strategies.
|
CursorOptions(DBCursor.KeyMatchingStrategy keyMatchingStrategy,
DBCursor.PositionStrategy positionStrategy,
CSN defaultCSN)
Creates options with provided strategies and default CSN.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
CSN |
getDefaultCSN()
Returns the default CSN.
|
DBCursor.KeyMatchingStrategy |
getKeyMatchingStrategy()
Returns the key matching strategy.
|
DBCursor.PositionStrategy |
getPositionStrategy()
Returns the position strategy.
|
int |
hashCode() |
String |
toString() |
public CursorOptions(DBCursor.KeyMatchingStrategy keyMatchingStrategy, DBCursor.PositionStrategy positionStrategy)
keyMatchingStrategy
- The key matching strategypositionStrategy
- The position strategypublic CursorOptions(DBCursor.KeyMatchingStrategy keyMatchingStrategy, DBCursor.PositionStrategy positionStrategy, CSN defaultCSN)
keyMatchingStrategy
- The key matching strategypositionStrategy
- The position 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 matching and positioning strategy.
For example, providing a default CSN with KeyMatchingStrategy.GREATER_THAN_OR_EQUAL_TO_KEY
and PositionStrategy.AFTER_MATCHING_KEY
, means the cursor will first return the record
immediately newer than the provided default CSN.public DBCursor.KeyMatchingStrategy getKeyMatchingStrategy()
public DBCursor.PositionStrategy getPositionStrategy()
public CSN getDefaultCSN()
Copyright © 2010–2017 ForgeRock AS. All rights reserved.