Interface Position
- All Known Implementing Classes:
AggregateSequenceNumberPosition,GlobalIndexPosition
public sealed interface Position
permits GlobalIndexPosition, AggregateSequenceNumberPosition (not exhaustive)
Represents a position from which sourcing may start.
- Since:
- 5.0.0
- Author:
- John Hendrikx
-
Field Summary
Fields -
Method Summary
-
Field Details
-
START
Represents the smallest possible position.
-
-
Method Details
-
min
Returns the smallest of the two positions. If one of the positions isSTART, this function will always return this value. Implementors must ensure this operation is symmetric, and so should always returnSTARTwhen called with it.- Parameters:
other- Another position, cannot benull.- Returns:
- The smallest of the two positions, never
null. - Throws:
NullPointerException- When any argument isnull.IllegalArgumentException- When the given position is incompatible with this position.
-