Package com.eventstore.dbclient
Class ReadResult
java.lang.Object
com.eventstore.dbclient.ReadResult
Returned after a successful read operation.
-
Method Summary
Modifier and TypeMethodDescriptionReturns all the events of the read operation.longWhen reading from a regular stream, returns the first event revision number of the stream.When reading from $all stream, returns the last event position.longWhen reading from a regular stream, returns the last event revision number of the stream.toString()
-
Method Details
-
getEvents
Returns all the events of the read operation. -
getFirstStreamPosition
public long getFirstStreamPosition()When reading from a regular stream, returns the first event revision number of the stream. -
getLastStreamPosition
public long getLastStreamPosition()When reading from a regular stream, returns the last event revision number of the stream. -
getLastAllStreamPosition
When reading from $all stream, returns the last event position.- Returns:
- null if reading from a regular stream.
-
toString
-