Package akka.javasdk.ledger
Record Class FlowPage
- Record Components:
records- the records of the page, in the order they were recordednextPosition- 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-truewhen the flow held more records after this page when it was read
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 Summary
ConstructorsConstructorDescriptionFlowPage(List<FlowRecord> records, long nextPosition, boolean hasMore) Creates an instance of aFlowPagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasMore()Returns the value of thehasMorerecord component.longReturns the value of thenextPositionrecord component.records()Returns the value of therecordsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FlowPage
Creates an instance of aFlowPagerecord class.- Parameters:
records- the value for therecordsrecord componentnextPosition- the value for thenextPositionrecord componenthasMore- the value for thehasMorerecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
records
Returns the value of therecordsrecord component.- Returns:
- the value of the
recordsrecord component
-
nextPosition
public long nextPosition()Returns the value of thenextPositionrecord component.- Returns:
- the value of the
nextPositionrecord component
-
hasMore
public boolean hasMore()Returns the value of thehasMorerecord component.- Returns:
- the value of the
hasMorerecord component
-