Record Class FlowPage

Object
Record
akka.javasdk.ledger.FlowPage
Record Components:
records - the records of the page, in the order they were recorded
nextPosition - where the next page starts: the position after the last record that the read reached, also when the client left that record out of the page, or the position the read started from when the read reached no record. A page that is empty because the client left out all its records can therefore have a next position after the start. A read from it also returns the records that were recorded after this page was read.
hasMore - true when the flow held more records after this page when it was read

public record FlowPage(List<FlowRecord> records, long nextPosition, boolean hasMore) extends Record
One page of the records of a flow, as LedgerClient.getFlowRecords(String) returns it. A position is not a count or an index of the records. Pass it only back to LedgerClient.getFlowRecords(String, long).
  • Constructor Details

    • FlowPage

      public FlowPage(List<FlowRecord> records, long nextPosition, boolean hasMore)
      Creates an instance of a FlowPage record class.
      Parameters:
      records - the value for the records record component
      nextPosition - the value for the nextPosition record component
      hasMore - the value for the hasMore record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • records

      public List<FlowRecord> records()
      Returns the value of the records record component.
      Returns:
      the value of the records record component
    • nextPosition

      public long nextPosition()
      Returns the value of the nextPosition record component.
      Returns:
      the value of the nextPosition record component
    • hasMore

      public boolean hasMore()
      Returns the value of the hasMore record component.
      Returns:
      the value of the hasMore record component