Class ReadResult


  • public class ReadResult
    extends java.lang.Object
    Returned 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.
      long getFirstStreamPosition()
      When reading from a regular stream, returns the first event revision number of the stream.
      Position getLastAllStreamPosition()
      When reading from $all stream, returns the last event position.
      long getLastStreamPosition()
      When reading from a regular stream, returns the last event revision number of the stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.