Package com.eventstore.dbclient
Class StreamPosition<A>
java.lang.Object
com.eventstore.dbclient.StreamPosition<A>
- Type Parameters:
A- could be a revision number or transaction log position.
Represents a logical position in a regular stream or $all stream.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A> StreamPosition<A>end()Represents the end of a stream.Checks it's a specific position and returns the value.Checks if it's a specific position and returns the value.booleanisEnd()Checks if it's the end of the stream.booleanisStart()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.
-
Method Details
-
start
Represents the beginning of a stream. -
end
Represents the end of a stream. -
position
Represents a specific position. -
isStart
public boolean isStart()Checks if it's the beginning of the stream. -
isEnd
public boolean isEnd()Checks if it's the end of the stream. -
getPosition
Checks it's a specific position and returns the value. -
getPositionOrThrow
Checks if it's a specific position and returns the value.
-