com.digitalasset.canton.platform.store.dao
BufferedTransactionByIdReader
Companion object BufferedTransactionByIdReader
class BufferedTransactionByIdReader[API_RESPONSE] extends AnyRef
Generic class that helps serving Ledger API point-wise lookups (TransactionService.{GetTransactionByEventId, GetTransactionById, GetFlatTransactionByEventId, GetFlatTransactionById}) from either the in-memory fan-out buffer or from persistence.
- API_RESPONSE
The Ledger API response type.
- Alphabetic
- By Inheritance
- BufferedTransactionByIdReader
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new BufferedTransactionByIdReader(inMemoryFanoutBuffer: InMemoryFanoutBuffer, fetchFromPersistence: FetchTransactionByIdFromPersistence[API_RESPONSE], toApiResponse: ToApiResponse[API_RESPONSE])
- inMemoryFanoutBuffer
The in-memory fan-out buffer.
- fetchFromPersistence
Fetch a transaction by id from persistence.
- toApiResponse
Convert a com.digitalasset.canton.platform.store.interfaces.TransactionLogUpdate.TransactionAccepted to a specific API response while also filtering for visibility.
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() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fetch(transactionId: String, requestingParties: Set[daml.lf.data.Ref.Party])(implicit loggingContext: LoggingContextWithTrace): Future[Option[API_RESPONSE]]
Serves processed and filtered transaction from the buffer by transaction id, with fallback to a persistence fetch if the transaction is not anymore in the buffer (i.e.
Serves processed and filtered transaction from the buffer by transaction id, with fallback to a persistence fetch if the transaction is not anymore in the buffer (i.e. it was evicted)
- transactionId
The transaction id.
- requestingParties
Parties requesting the transaction lookup
- loggingContext
The logging context
- returns
A future wrapping the API response if found.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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])