Class ReadResult

java.lang.Object
com.eventstore.dbclient.ReadResult

public class ReadResult extends Object
Returned after a successful read operation.
  • Method Details

    • getEvents

      public 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object