com.digitalasset.canton.synchronizer.sequencer.traffic
SequencerTrafficConfig
Companion object SequencerTrafficConfig
final case class SequencerTrafficConfig(trafficPurchasedCacheSizePerMember: PositiveInt = PositiveInt.tryCreate(3), maximumTrafficPurchasedCacheSize: PositiveInt = PositiveInt.tryCreate(1000), batchAggregatorConfig: BatchAggregatorConfig = BatchAggregatorConfig.Batching(), pruningRetentionWindow: NonNegativeFiniteDuration = NonNegativeFiniteDuration.ofHours(2L), trafficConsumedCacheTTL: NonNegativeFiniteDuration = NonNegativeFiniteDuration.ofHours(2L), maximumTrafficConsumedCacheSize: PositiveInt = PositiveInt.tryCreate(1000), submissionTimestampInFutureTolerance: NonNegativeFiniteDuration = NonNegativeFiniteDuration.ofSeconds(5)) extends UniformCantonConfigValidation with Product with Serializable
Configuration for the traffic purchased entry manager.
- trafficPurchasedCacheSizePerMember
How many traffic purchased entries to keep in memory for each member.
- maximumTrafficPurchasedCacheSize
The maximum number of entries (= members) to keep in the cache.
- batchAggregatorConfig
configures how balances are batched before being written to the store.
- pruningRetentionWindow
the duration for which balances are kept in the cache and the store. Balances older than this duration will be pruned at regular intervals.
- trafficConsumedCacheTTL
the duration for which consumed traffic entries are kept in the cache after the last time they've been accessed.
- maximumTrafficConsumedCacheSize
Maximum number of entries (members) to keep in the traffic consumed cache.
- submissionTimestampInFutureTolerance
the tolerance window that should be added to future dated submission timestamp that can still be accepted by this sequencer.
- Alphabetic
- By Inheritance
- SequencerTrafficConfig
- Serializable
- Product
- Equals
- UniformCantonConfigValidation
- CustomCantonConfigValidation
- CantonConfigValidation
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SequencerTrafficConfig(trafficPurchasedCacheSizePerMember: PositiveInt = PositiveInt.tryCreate(3), maximumTrafficPurchasedCacheSize: PositiveInt = PositiveInt.tryCreate(1000), batchAggregatorConfig: BatchAggregatorConfig = BatchAggregatorConfig.Batching(), pruningRetentionWindow: NonNegativeFiniteDuration = NonNegativeFiniteDuration.ofHours(2L), trafficConsumedCacheTTL: NonNegativeFiniteDuration = NonNegativeFiniteDuration.ofHours(2L), maximumTrafficConsumedCacheSize: PositiveInt = PositiveInt.tryCreate(1000), submissionTimestampInFutureTolerance: NonNegativeFiniteDuration = NonNegativeFiniteDuration.ofSeconds(5))
- trafficPurchasedCacheSizePerMember
How many traffic purchased entries to keep in memory for each member.
- maximumTrafficPurchasedCacheSize
The maximum number of entries (= members) to keep in the cache.
- batchAggregatorConfig
configures how balances are batched before being written to the store.
- pruningRetentionWindow
the duration for which balances are kept in the cache and the store. Balances older than this duration will be pruned at regular intervals.
- trafficConsumedCacheTTL
the duration for which consumed traffic entries are kept in the cache after the last time they've been accessed.
- maximumTrafficConsumedCacheSize
Maximum number of entries (members) to keep in the traffic consumed cache.
- submissionTimestampInFutureTolerance
the tolerance window that should be added to future dated submission timestamp that can still be accepted by this sequencer.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val batchAggregatorConfig: BatchAggregatorConfig
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def doValidate(edition: CantonEdition): Seq[CantonConfigValidationError]
Returns all validation errors that are specific to this Canton configuration class.
Returns all validation errors that are specific to this Canton configuration class. Successful validation should return an empty sequence.
Validation errors of subconfigurations should not be reported by this method, but via the type class derivation.
- Attributes
- protected
- Definition Classes
- UniformCantonConfigValidation → CustomCantonConfigValidation
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val maximumTrafficConsumedCacheSize: PositiveInt
- val maximumTrafficPurchasedCacheSize: PositiveInt
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val pruningRetentionWindow: NonNegativeFiniteDuration
- val submissionTimestampInFutureTolerance: NonNegativeFiniteDuration
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val trafficConsumedCacheTTL: NonNegativeFiniteDuration
- val trafficPurchasedCacheSizePerMember: PositiveInt
- final def validate[T >: SequencerTrafficConfig.this.type](edition: CantonEdition)(implicit validator: CantonConfigValidator[T]): Either[NonEmpty[Seq[CantonConfigValidationError]], Unit]
- Definition Classes
- CantonConfigValidation
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])