Package org.stellar.sdk.xdr
Class StateArchivalSettings
java.lang.Object
org.stellar.sdk.xdr.StateArchivalSettings
StateArchivalSettings's original definition in the XDR file is:
struct StateArchivalSettings { uint32 maxEntryTTL; uint32 minTemporaryTTL; uint32 minPersistentTTL; // rent_fee = wfee_rate_average / rent_rate_denominator_for_type int64 persistentRentRateDenominator; int64 tempRentRateDenominator; // max number of entries that emit archival meta in a single ledger uint32 maxEntriesToArchive; // Number of snapshots to use when calculating average BucketList size uint32 bucketListSizeWindowSampleSize; // How often to sample the BucketList size for the average, in ledgers uint32 bucketListWindowSamplePeriod; // Maximum number of bytes that we scan for eviction per ledger uint32 evictionScanSize; // Lowest BucketList level to be scanned to evict entries uint32 startingEvictionScanLevel; };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionStateArchivalSettings
(Uint32 maxEntryTTL, Uint32 minTemporaryTTL, Uint32 minPersistentTTL, Int64 persistentRentRateDenominator, Int64 tempRentRateDenominator, Uint32 maxEntriesToArchive, Uint32 bucketListSizeWindowSampleSize, Uint32 bucketListWindowSamplePeriod, Uint32 evictionScanSize, Uint32 startingEvictionScanLevel) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static StateArchivalSettings
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static StateArchivalSettings
fromXdrBase64
(String xdr) static StateArchivalSettings
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setBucketListSizeWindowSampleSize
(Uint32 bucketListSizeWindowSampleSize) void
setBucketListWindowSamplePeriod
(Uint32 bucketListWindowSamplePeriod) void
setEvictionScanSize
(Uint32 evictionScanSize) void
setMaxEntriesToArchive
(Uint32 maxEntriesToArchive) void
setMaxEntryTTL
(Uint32 maxEntryTTL) void
setMinPersistentTTL
(Uint32 minPersistentTTL) void
setMinTemporaryTTL
(Uint32 minTemporaryTTL) void
setPersistentRentRateDenominator
(Int64 persistentRentRateDenominator) void
setStartingEvictionScanLevel
(Uint32 startingEvictionScanLevel) void
setTempRentRateDenominator
(Int64 tempRentRateDenominator) toString()
default String
default byte[]
-
Constructor Details
-
StateArchivalSettings
public StateArchivalSettings() -
StateArchivalSettings
public StateArchivalSettings(Uint32 maxEntryTTL, Uint32 minTemporaryTTL, Uint32 minPersistentTTL, Int64 persistentRentRateDenominator, Int64 tempRentRateDenominator, Uint32 maxEntriesToArchive, Uint32 bucketListSizeWindowSampleSize, Uint32 bucketListWindowSamplePeriod, Uint32 evictionScanSize, Uint32 startingEvictionScanLevel)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getMaxEntryTTL
-
getMinTemporaryTTL
-
getMinPersistentTTL
-
getPersistentRentRateDenominator
-
getTempRentRateDenominator
-
getMaxEntriesToArchive
-
getBucketListSizeWindowSampleSize
-
getBucketListWindowSamplePeriod
-
getEvictionScanSize
-
getStartingEvictionScanLevel
-
setMaxEntryTTL
-
setMinTemporaryTTL
-
setMinPersistentTTL
-
setPersistentRentRateDenominator
-
setTempRentRateDenominator
-
setMaxEntriesToArchive
-
setBucketListSizeWindowSampleSize
-
setBucketListWindowSamplePeriod
-
setEvictionScanSize
-
setStartingEvictionScanLevel
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-