public class SorobanResources extends java.lang.Object implements XdrElement
struct SorobanResources
{
// The ledger footprint of the transaction.
LedgerFootprint footprint;
// The maximum number of instructions this transaction can use
uint32 instructions;
// The maximum number of bytes this transaction can read from disk backed entries
uint32 diskReadBytes;
// The maximum number of bytes this transaction can write to ledger
uint32 writeBytes;
};
| Modifier and Type | Class and Description |
|---|---|
static class |
SorobanResources.SorobanResourcesBuilder |
| Constructor and Description |
|---|
SorobanResources() |
SorobanResources(LedgerFootprint footprint,
Uint32 instructions,
Uint32 diskReadBytes,
Uint32 writeBytes) |
| Modifier and Type | Method and Description |
|---|---|
static SorobanResources.SorobanResourcesBuilder |
builder() |
static SorobanResources |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static SorobanResources |
fromXdrBase64(java.lang.String xdr) |
static SorobanResources |
fromXdrByteArray(byte[] xdr) |
Uint32 |
getDiskReadBytes() |
LedgerFootprint |
getFootprint() |
Uint32 |
getInstructions() |
Uint32 |
getWriteBytes() |
int |
hashCode() |
void |
setDiskReadBytes(Uint32 diskReadBytes) |
void |
setFootprint(LedgerFootprint footprint) |
void |
setInstructions(Uint32 instructions) |
void |
setWriteBytes(Uint32 writeBytes) |
SorobanResources.SorobanResourcesBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArraypublic SorobanResources()
public SorobanResources(LedgerFootprint footprint, Uint32 instructions, Uint32 diskReadBytes, Uint32 writeBytes)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static SorobanResources decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic static SorobanResources fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static SorobanResources fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOExceptionpublic static SorobanResources.SorobanResourcesBuilder builder()
public SorobanResources.SorobanResourcesBuilder toBuilder()
public LedgerFootprint getFootprint()
public Uint32 getInstructions()
public Uint32 getDiskReadBytes()
public Uint32 getWriteBytes()
public void setFootprint(LedgerFootprint footprint)
public void setInstructions(Uint32 instructions)
public void setDiskReadBytes(Uint32 diskReadBytes)
public void setWriteBytes(Uint32 writeBytes)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object