class BufferedTransactionPointwiseReader[QUERY_PARAM_TYPE, API_RESPONSE] extends AnyRef
Generic class that helps serving Ledger API point-wise lookups (UpdateService.{GetTransactionById, GetTransactionTreeById, GetTransactionByOffset, GetTransactionTreeByOffset}) from either the in-memory fan-out buffer or from persistence.
- QUERY_PARAM_TYPE
The query parameter type.
- API_RESPONSE
The Ledger API response type.
- Alphabetic
- By Inheritance
- BufferedTransactionPointwiseReader
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new BufferedTransactionPointwiseReader(fetchFromPersistence: FetchTransactionPointwiseFromPersistence[QUERY_PARAM_TYPE, API_RESPONSE], fetchFromBuffer: (QUERY_PARAM_TYPE) => Option[TransactionAccepted], toApiResponse: ToApiResponse[QUERY_PARAM_TYPE, API_RESPONSE])
- fetchFromPersistence
Fetch a transaction by offset or 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]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fetch(queryParam: QUERY_PARAM_TYPE)(implicit loggingContext: LoggingContextWithTrace): Future[Option[API_RESPONSE]]
Serves processed and filtered transaction from the buffer by the query parameter, 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 the query parameter, with fallback to a persistence fetch if the transaction is not anymore in the buffer (i.e. it was evicted)
- queryParam
The query parameter.
- loggingContext
The logging context
- returns
A future wrapping the API response if found.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- 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
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- 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])