class InMemoryContractStore extends ContractStore with NamedLogging

An in-memory contract store. This class is thread-safe.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InMemoryContractStore
  2. NamedLogging
  3. ContractStore
  4. ContractLookup
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new InMemoryContractStore(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. def contractCount()(implicit traceContext: TraceContext): Future[Int]
    Definition Classes
    InMemoryContractStoreContractStore
  7. def deleteContract(id: LfContractId)(implicit traceContext: TraceContext): EitherT[Future, UnknownContract, Unit]

    Removes the contract from the contract store.

    Removes the contract from the contract store.

    Definition Classes
    InMemoryContractStoreContractStore
  8. def deleteDivulged(upTo: RequestCounter)(implicit traceContext: TraceContext): Future[Unit]

    Deletes all divulged contracts up to a given request counter.

    Deletes all divulged contracts up to a given request counter.

    Definition Classes
    InMemoryContractStoreContractStore
  9. def deleteIgnoringUnknown(ids: Iterable[LfContractId])(implicit traceContext: TraceContext): Future[Unit]

    Deletes multiple contracts from the contract store.

    Deletes multiple contracts from the contract store.

    Ignores errors due to a contract not being present in the store, fails on other errors.

    Definition Classes
    InMemoryContractStoreContractStore
  10. implicit val ec: ExecutionContext
    Attributes
    protected
    Definition Classes
    InMemoryContractStoreContractLookup
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def find(filterId: Option[String], filterPackage: Option[String], filterTemplate: Option[String], limit: Int)(implicit traceContext: TraceContext): Future[List[SerializableContract]]

    Debug find utility to search pcs

    Debug find utility to search pcs

    Definition Classes
    InMemoryContractStoreContractStore
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def logger: TracedLogger
    Attributes
    protected[participant.store]
    Definition Classes
    InMemoryContractStoreNamedLoggingContractLookup
  18. val loggerFactory: NamedLoggerFactory
    Attributes
    protected
    Definition Classes
    InMemoryContractStoreNamedLogging
  19. implicit def loggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  20. def lookup(id: LfContractId)(implicit traceContext: TraceContext): OptionT[Future, StoredContract]
  21. def lookupContract(id: LfContractId)(implicit traceContext: TraceContext): OptionT[Future, SerializableContract]
    Definition Classes
    ContractLookup
  22. def lookupContractE(id: LfContractId)(implicit traceContext: TraceContext): EitherT[Future, UnknownContract, SerializableContract]
    Definition Classes
    ContractLookup
  23. def lookupE(id: LfContractId)(implicit traceContext: TraceContext): EitherT[Future, UnknownContract, StoredContract]
    Definition Classes
    ContractLookup
  24. def lookupLfInstance(lfId: LfContractId)(implicit traceContext: TraceContext): OptionT[Future, LfContractInst]

    Yields None (embedded in a Future) if the contract instance has not been stored or the id cannot be parsed.

    Yields None (embedded in a Future) if the contract instance has not been stored or the id cannot be parsed.

    Discards the serialization.

    Definition Classes
    ContractLookup
  25. def lookupStakeholders(ids: Set[LfContractId])(implicit traceContext: TraceContext): EitherT[Future, UnknownContracts, Map[LfContractId, Set[LfPartyId]]]
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. def storeCreatedContract(requestCounter: RequestCounter, transactionId: TransactionId, contract: SerializableContract)(implicit traceContext: TraceContext): Future[Unit]
    Definition Classes
    ContractStore
  31. def storeCreatedContracts(requestCounter: RequestCounter, transactionId: TransactionId, creations: Seq[SerializableContract])(implicit traceContext: TraceContext): Future[Unit]

    Stores contracts created by a request.

    Stores contracts created by a request. If the same contract instance has been stored before, the request counter is set to the lower one.

    requestCounter

    The request counter of the transaction creating the contracts.

    creations

    The contracts to be created

    returns

    DuplicateContract for the contracts that have been or are being inserted with different values for com.digitalasset.canton.protocol.SerializableContract.contractInstance or com.digitalasset.canton.protocol.SerializableContract.ledgerCreateTime.

    Definition Classes
    InMemoryContractStoreContractStore
  32. def storeDivulgedContract(requestCounter: RequestCounter, contract: SerializableContract)(implicit traceContext: TraceContext): Future[Unit]
    Definition Classes
    ContractStore
  33. def storeDivulgedContracts(requestCounter: RequestCounter, divulgences: Seq[SerializableContract])(implicit traceContext: TraceContext): Future[Unit]

    Store divulged contracts.

    Store divulged contracts.

    returns

    DuplicateContract for the contracts that have been or are being inserted with a different contract instance or a different ledger time.

    Definition Classes
    InMemoryContractStoreContractStore
  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  38. 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 ContractStore

Inherited from ContractLookup

Inherited from AnyRef

Inherited from Any

Ungrouped