Package com.tuladb
Record Class LedgerClient.WrappedTxn
java.lang.Object
java.lang.Record
com.tuladb.LedgerClient.WrappedTxn
- Enclosing class:
LedgerClient
public static record LedgerClient.WrappedTxn(long sourceId, String txnId, int ledgerId, long batchSeq, long timestamp, byte phase, int resultCode, String statusName, int legCount, long totalLegAmount, List<LedgerClient.WrappedTxnLeg> legs, int batchIndex)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWrappedTxn(long sourceId, String txnId, int ledgerId, long batchSeq, long timestamp, byte phase, int resultCode, String statusName, int legCount, long totalLegAmount, List<LedgerClient.WrappedTxnLeg> legs, int batchIndex) Creates an instance of aWrappedTxnrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebatchIndexrecord component.longbatchSeq()Returns the value of thebatchSeqrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intledgerId()Returns the value of theledgerIdrecord component.intlegCount()Returns the value of thelegCountrecord component.legs()Returns the value of thelegsrecord component.bytephase()Returns the value of thephaserecord component.intReturns the value of theresultCoderecord component.longsourceId()Returns the value of thesourceIdrecord component.Returns the value of thestatusNamerecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalLegAmountrecord component.txnId()Returns the value of thetxnIdrecord component.
-
Constructor Details
-
WrappedTxn
public WrappedTxn(long sourceId, String txnId, int ledgerId, long batchSeq, long timestamp, byte phase, int resultCode, String statusName, int legCount, long totalLegAmount, List<LedgerClient.WrappedTxnLeg> legs, int batchIndex) Creates an instance of aWrappedTxnrecord class.- Parameters:
sourceId- the value for thesourceIdrecord componenttxnId- the value for thetxnIdrecord componentledgerId- the value for theledgerIdrecord componentbatchSeq- the value for thebatchSeqrecord componenttimestamp- the value for thetimestamprecord componentphase- the value for thephaserecord componentresultCode- the value for theresultCoderecord componentstatusName- the value for thestatusNamerecord componentlegCount- the value for thelegCountrecord componenttotalLegAmount- the value for thetotalLegAmountrecord componentlegs- the value for thelegsrecord componentbatchIndex- the value for thebatchIndexrecord 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 '=='. -
sourceId
public long sourceId()Returns the value of thesourceIdrecord component.- Returns:
- the value of the
sourceIdrecord component
-
txnId
Returns the value of thetxnIdrecord component.- Returns:
- the value of the
txnIdrecord component
-
ledgerId
public int ledgerId()Returns the value of theledgerIdrecord component.- Returns:
- the value of the
ledgerIdrecord component
-
batchSeq
public long batchSeq()Returns the value of thebatchSeqrecord component.- Returns:
- the value of the
batchSeqrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
phase
public byte phase()Returns the value of thephaserecord component.- Returns:
- the value of the
phaserecord component
-
resultCode
public int resultCode()Returns the value of theresultCoderecord component.- Returns:
- the value of the
resultCoderecord component
-
statusName
Returns the value of thestatusNamerecord component.- Returns:
- the value of the
statusNamerecord component
-
legCount
public int legCount()Returns the value of thelegCountrecord component.- Returns:
- the value of the
legCountrecord component
-
totalLegAmount
public long totalLegAmount()Returns the value of thetotalLegAmountrecord component.- Returns:
- the value of the
totalLegAmountrecord component
-
legs
Returns the value of thelegsrecord component.- Returns:
- the value of the
legsrecord component
-
batchIndex
public int batchIndex()Returns the value of thebatchIndexrecord component.- Returns:
- the value of the
batchIndexrecord component
-