c

com.digitalasset.canton.participant.store.memory

InMemorySingleDomainCausalDependencyStore

class InMemorySingleDomainCausalDependencyStore extends SingleDomainCausalDependencyStore with NamedLogging

The SingleDomainCausalDependencyStore maintains all the state it needs in an in-memory "cache". Persistance is only used for restarts. Therefore the in-memory store does not need to do anything until we have moved away from the in-memory cache.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InMemorySingleDomainCausalDependencyStore
  2. NamedLogging
  3. SingleDomainCausalDependencyStore
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new InMemorySingleDomainCausalDependencyStore(domainId: DomainId, loggerFactory: NamedLoggerFactory)(implicit ec: ExecutionContext)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. val domainId: DomainId
  7. implicit val ec: ExecutionContext
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def initialize(lastIncluded: Option[RequestCounter])(implicit tc: TraceContext): Future[Unit]
  13. val initialized: Future[Unit]

    Synchronization to ensure the state has been recovered before we use this class.

    Synchronization to ensure the state has been recovered before we use this class.

    Definition Classes
    InMemorySingleDomainCausalDependencyStoreSingleDomainCausalDependencyStore
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  16. val loggerFactory: NamedLoggerFactory
  17. implicit def loggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def persistentInsert(rc: RequestCounter, ts: CantonTimestamp, deps: Map[LfPartyId, Map[DomainId, CantonTimestamp]], transferOutId: Option[TransferId])(implicit tc: TraceContext): Future[Unit]
  23. def snapshotStateForTesting: Map[LfPartyId, Map[DomainId, CantonTimestamp]]
    Definition Classes
    SingleDomainCausalDependencyStore
    Annotations
    @VisibleForTesting()
  24. val state: TrieMap[LfPartyId, Map[DomainId, CantonTimestamp]]
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def updateStateAndStore(rc: RequestCounter, ts: CantonTimestamp, clocks: Map[LfPartyId, Map[DomainId, CantonTimestamp]], transferOutId: Option[TransferId])(implicit tc: TraceContext): Future[CausalityWrite]

    Synchronously update the in-memory state with the new causal dependencies specified by clocks.

    Synchronously update the in-memory state with the new causal dependencies specified by clocks. Persist the change to the causality state asynchronously.

    This should not be called concurrently; the caller must wait for each returned future to complete before making another call.

    returns

    A future that completes when the new causality state has been persisted.

    Definition Classes
    SingleDomainCausalDependencyStore
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from NamedLogging

Inherited from AnyRef

Inherited from Any

Ungrouped