com.digitalasset.canton.domain.mediator.store
FinalizedResponseStore
Companion object FinalizedResponseStore
trait FinalizedResponseStore extends AutoCloseable
Stores and retrieves finalized mediator response aggregations
- Alphabetic
- By Inheritance
- FinalizedResponseStore
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def close(): Unit
- Definition Classes
- AutoCloseable
- Annotations
- @throws(classOf[java.lang.Exception])
- abstract def count()(implicit traceContext: TraceContext): Future[Long]
Count how many finalized responses we have stored.
Count how many finalized responses we have stored. Primarily used for testing mediator pruning.
- abstract def fetch(requestId: RequestId)(implicit traceContext: TraceContext): EitherT[Future, MediatorRequestNotFound, ResponseAggregation]
Fetch previously stored finalized mediator response aggregation by requestId.
- abstract def prune(timestamp: CantonTimestamp)(implicit traceContext: TraceContext): Future[Unit]
Remove all responses up to and including the provided timestamp.
- abstract def store(request: ResponseAggregation)(implicit traceContext: TraceContext): Future[Unit]
Stores finalized mediator response aggregations (whose state is a Left(verdict)).
Stores finalized mediator response aggregations (whose state is a Left(verdict)). In the event of a crash we may attempt to store an existing finalized request so the store should behave in an idempotent manner. TODO(#4335): If there is an existing value ensure that it matches the value we want to insert
Concrete 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
- 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])