final case class HighThroughput(payloadQueueSize: Int = 1000, payloadWriteBatchMaxSize: Int = 50, payloadWriteMaxConcurrency: Int = 4, payloadToEventMargin: NonNegativeFiniteDuration = DefaultPayloadTimestampMargin, eventWriteBatchMaxSize: Int = 100, eventWriteMaxConcurrency: Int = 1, commitModeValidation: Option[CommitMode] = CommitMode.Default.some, checkpointInterval: NonNegativeFiniteDuration = DefaultCheckpointInterval, checkpointBackfillParallelism: PositiveInt = DefaultCheckpointBackfillParallelism, bufferedEventsMaxMemory: BytesUnit = DefaultBufferedEventsMaxMemory, bufferedEventsPreloadBatchSize: PositiveInt = DefaultBufferedEventsPreloadBatchSize) extends SequencerWriterConfig with UniformCantonConfigValidation with Product with Serializable
Creates batches of incoming events to minimize the number of writes to the database. Useful for a high throughput usecase when batches will be quickly filled and written. Will be detrimental for latency if used and a lower throughput of events causes writes to always be delayed to the batch max duration.
- Alphabetic
- By Inheritance
- HighThroughput
- Serializable
- Product
- Equals
- UniformCantonConfigValidation
- CustomCantonConfigValidation
- CantonConfigValidation
- SequencerWriterConfig
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new HighThroughput(payloadQueueSize: Int = 1000, payloadWriteBatchMaxSize: Int = 50, payloadWriteMaxConcurrency: Int = 4, payloadToEventMargin: NonNegativeFiniteDuration = DefaultPayloadTimestampMargin, eventWriteBatchMaxSize: Int = 100, eventWriteMaxConcurrency: Int = 1, commitModeValidation: Option[CommitMode] = CommitMode.Default.some, checkpointInterval: NonNegativeFiniteDuration = DefaultCheckpointInterval, checkpointBackfillParallelism: PositiveInt = DefaultCheckpointBackfillParallelism, bufferedEventsMaxMemory: BytesUnit = DefaultBufferedEventsMaxMemory, bufferedEventsPreloadBatchSize: PositiveInt = DefaultBufferedEventsPreloadBatchSize)
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 bufferedEventsMaxMemory: BytesUnit
- Definition Classes
- HighThroughput → SequencerWriterConfig
- val bufferedEventsPreloadBatchSize: PositiveInt
- Definition Classes
- HighThroughput → SequencerWriterConfig
- val checkpointBackfillParallelism: PositiveInt
- Definition Classes
- HighThroughput → SequencerWriterConfig
- val checkpointInterval: NonNegativeFiniteDuration
how frequently to generate counter checkpoints for all members
how frequently to generate counter checkpoints for all members
- Definition Classes
- HighThroughput → SequencerWriterConfig
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- val commitModeValidation: Option[CommitMode]
- Definition Classes
- HighThroughput → SequencerWriterConfig
- 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
- val eventWriteBatchMaxSize: Int
- Definition Classes
- HighThroughput → SequencerWriterConfig
- val eventWriteMaxConcurrency: Int
- Definition Classes
- HighThroughput → SequencerWriterConfig
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def modify(payloadQueueSize: Int = this.payloadQueueSize, payloadWriteBatchMaxSize: Int = this.payloadWriteBatchMaxSize, payloadWriteMaxConcurrency: Int = this.payloadWriteMaxConcurrency, payloadToEventMargin: NonNegativeFiniteDuration = this.payloadToEventMargin, eventWriteBatchMaxSize: Int = this.eventWriteBatchMaxSize, eventWriteMaxConcurrency: Int = this.eventWriteMaxConcurrency, commitModeValidation: Option[CommitMode] = this.commitModeValidation, checkpointInterval: NonNegativeFiniteDuration = this.checkpointInterval, checkpointBackfillParallelism: PositiveInt = this.checkpointBackfillParallelism, bufferedEventsMaxMemory: BytesUnit = this.bufferedEventsMaxMemory, bufferedEventsPreloadBatchSize: PositiveInt = this.bufferedEventsPreloadBatchSize): SequencerWriterConfig
- Definition Classes
- SequencerWriterConfig
- 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()
- val payloadQueueSize: Int
- Definition Classes
- HighThroughput → SequencerWriterConfig
- val payloadToEventMargin: NonNegativeFiniteDuration
- Definition Classes
- HighThroughput → SequencerWriterConfig
- val payloadWriteBatchMaxSize: Int
- Definition Classes
- HighThroughput → SequencerWriterConfig
- val payloadWriteMaxConcurrency: Int
- Definition Classes
- HighThroughput → SequencerWriterConfig
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def validate[T >: HighThroughput.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])