Package com.eventstore.dbclient
Class ReadResult
- java.lang.Object
-
- com.eventstore.dbclient.ReadResult
-
public class ReadResult extends java.lang.ObjectReturned after a successful read operation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ResolvedEvent>getEvents()Returns all the events of the read operation.longgetFirstStreamPosition()When reading from a regular stream, returns the first event revision number of the stream.PositiongetLastAllStreamPosition()When reading from $all stream, returns the last event position.longgetLastStreamPosition()When reading from a regular stream, returns the last event revision number of the stream.
-
-
-
Method Detail
-
getEvents
public java.util.List<ResolvedEvent> 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
public Position getLastAllStreamPosition()
When reading from $all stream, returns the last event position.- Returns:
- null if reading from a regular stream.
-
-