Package org.stellar.sdk.xdr
Class ConfigSettingContractParallelComputeV0
java.lang.Object
org.stellar.sdk.xdr.ConfigSettingContractParallelComputeV0
- All Implemented Interfaces:
XdrElement
ConfigSettingContractParallelComputeV0's original definition in the XDR file is:
struct ConfigSettingContractParallelComputeV0
{
// Maximum number of clusters with dependent transactions allowed in a
// stage of parallel tx set component.
// This effectively sets the lower bound on the number of physical threads
// necessary to effectively apply transaction sets in parallel.
uint32 ledgerMaxDependentTxClusters;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionConfigSettingContractParallelComputeV0(Uint32 ledgerMaxDependentTxClusters) Creates a newConfigSettingContractParallelComputeV0instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) Value of theledgerMaxDependentTxClustersfield.inthashCode()voidsetLedgerMaxDependentTxClusters(Uint32 ledgerMaxDependentTxClusters) Value of theledgerMaxDependentTxClustersfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ConfigSettingContractParallelComputeV0
public ConfigSettingContractParallelComputeV0() -
ConfigSettingContractParallelComputeV0
Creates a newConfigSettingContractParallelComputeV0instance.- Parameters:
ledgerMaxDependentTxClusters- theledgerMaxDependentTxClustersfield 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 ConfigSettingContractParallelComputeV0 decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
public static ConfigSettingContractParallelComputeV0 decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
public static ConfigSettingContractParallelComputeV0 fromXdrByteArray(byte[] xdr) throws IOException - 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
public static ConfigSettingContractParallelComputeV0.ConfigSettingContractParallelComputeV0Builder builder() -
toBuilder
-
getLedgerMaxDependentTxClusters
Value of theledgerMaxDependentTxClustersfield.- Returns:
- the
ledgerMaxDependentTxClustersfield value
-
setLedgerMaxDependentTxClusters
Value of theledgerMaxDependentTxClustersfield.- Parameters:
ledgerMaxDependentTxClusters- theledgerMaxDependentTxClustersfield value
-
equals
-
hashCode
public int hashCode() -
toString
-