Package org.stellar.sdk.xdr
Class ParallelTxsComponent
java.lang.Object
org.stellar.sdk.xdr.ParallelTxsComponent
- All Implemented Interfaces:
XdrElement
ParallelTxsComponent's original definition in the XDR file is:
struct ParallelTxsComponent
{
int64* baseFee;
// A sequence of stages that *may* have arbitrary data dependencies between
// each other, i.e. in a general case the stage execution order may not be
// arbitrarily shuffled without affecting the end result.
ParallelTxExecutionStage executionStages<>;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionParallelTxsComponent(Int64 baseFee, ParallelTxExecutionStage[] executionStages) Creates a newParallelTxsComponentinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ParallelTxsComponentdecode(XdrDataInputStream stream) static ParallelTxsComponentdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic ParallelTxsComponentstatic ParallelTxsComponentfromXdrBase64(String xdr) static ParallelTxsComponentfromXdrByteArray(byte[] xdr) Value of thebaseFeefield.Value of theexecutionStagesfield.inthashCode()voidsetBaseFee(Int64 baseFee) Value of thebaseFeefield.voidsetExecutionStages(ParallelTxExecutionStage[] executionStages) Value of theexecutionStagesfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ParallelTxsComponent
public ParallelTxsComponent() -
ParallelTxsComponent
Creates a newParallelTxsComponentinstance.- Parameters:
baseFee- thebaseFeefield valueexecutionStages- theexecutionStagesfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static ParallelTxsComponent decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getBaseFee
Value of thebaseFeefield.- Returns:
- the
baseFeefield value
-
getExecutionStages
Value of theexecutionStagesfield.- Returns:
- the
executionStagesfield value
-
setBaseFee
Value of thebaseFeefield.- Parameters:
baseFee- thebaseFeefield value
-
setExecutionStages
Value of theexecutionStagesfield.- Parameters:
executionStages- theexecutionStagesfield value
-
equals
-
hashCode
public int hashCode() -
toString
-