A - could be a revision number or transaction log position.public class StreamPosition<A>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <A> StreamPosition<A> |
end()
Represents the end of a stream.
|
java.util.Optional<A> |
getPosition()
Checks it's a specific position and returns the value.
|
A |
getPositionOrThrow()
Checks if it's a specific position and returns the value.
|
boolean |
isEnd()
Checks if it's the end of the stream.
|
boolean |
isStart()
Checks if it's the beginning of the stream.
|
static <A> StreamPosition<A> |
position(A position)
Represents a specific position.
|
static <A> StreamPosition<A> |
start()
Represents the beginning of a stream.
|
public static <A> StreamPosition<A> start()
public static <A> StreamPosition<A> end()
public static <A> StreamPosition<A> position(A position)
public boolean isStart()
public boolean isEnd()
public java.util.Optional<A> getPosition()
public A getPositionOrThrow()