com.digitalasset.canton.participant.pruning
AcsCommitmentProcessor
Companion class AcsCommitmentProcessor
object AcsCommitmentProcessor extends HasLoggerName
- Alphabetic
- By Inheritance
- AcsCommitmentProcessor
- HasLoggerName
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class CachedCommitments extends AnyRef
Caches the commitments per participant and the commitments per stakeholder group in a period, in order to optimize the computation of commitments for the subsequent period.
Caches the commitments per participant and the commitments per stakeholder group in a period, in order to optimize the computation of commitments for the subsequent period. It optimizes the computation of a counter-participant commitments when at most half of the stakeholder commitments shared with that participant change in the next period.
The class is thread-safe w.r.t. calling setCachedCommitments and computeCmtFromCached. However, for correct commitment computation, the caller needs to call setCachedCommitments before computeCmtFromCached, because computeCmtFromCached uses the state set by setCachedCommitments.
- Annotations
- @SuppressWarnings()
- final case class CommitmentSnapshot(recordTime: RecordTime, active: Map[SortedSet[LfPartyId], CommitmentType], delta: Map[SortedSet[LfPartyId], CommitmentType], deleted: Set[SortedSet[LfPartyId]]) extends PrettyPrinting with Product with Serializable
A snapshot of ACS commitments per set of stakeholders
A snapshot of ACS commitments per set of stakeholders
- recordTime
The timestamp and tie-breaker of the snapshot
- active
Maps stakeholders to the commitment to their shared ACS, if the shared ACS is not empty
- delta
A sub-map of active with those stakeholders whose commitments have changed since the last snapshot
- deleted
Stakeholder sets whose ACS has gone to empty since the last snapshot (no longer active)
- sealed trait CommitmentsPruningBound extends Product with Serializable
- type ProcessorType = (CantonTimestamp, Traced[List[OpenEnvelope[SignedProtocolMessage[AcsCommitment]]]]) => FutureUnlessShutdown[Unit]
- class RunningCommitments extends HasLoggerName
- Annotations
- @SuppressWarnings()
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
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- val emptyCommitment: CommitmentType
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit def errorLoggingContextFromNamedLoggingContext(implicit loggingContext: NamedLoggingContext): ErrorLoggingContext
Convert a com.digitalasset.canton.logging.NamedLoggingContext into an com.digitalasset.canton.logging.ErrorLoggingContext to fix the logger name to the current class name.
Convert a com.digitalasset.canton.logging.NamedLoggingContext into an com.digitalasset.canton.logging.ErrorLoggingContext to fix the logger name to the current class name.
- Attributes
- protected
- Definition Classes
- HasLoggerName
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val healthName: String
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def loggerNameFromThisClass: LoggerNameFromClass
- Attributes
- protected
- Definition Classes
- HasLoggerName
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def safeToPrune(requestJournalStore: RequestJournalStore, sequencerCounterTrackerStore: SequencerCounterTrackerStore, sortedReconciliationIntervalsProvider: SortedReconciliationIntervalsProvider, acsCommitmentStore: AcsCommitmentStore, inFlightSubmissionStore: InFlightSubmissionStore, domainId: DomainId, checkForOutstandingCommitments: Boolean)(implicit ec: ExecutionContext, loggingContext: NamedLoggingContext): Future[Option[CantonTimestampSecond]]
The latest commitment tick before or at the given time at which it is safe to prune.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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])
- object CommitmentsPruningBound extends Serializable
- object Errors extends AcsCommitmentErrorGroup