class MediatorState extends NamedLogging

Provides state management for messages received by the mediator. Non-finalized response aggregations are kept in memory, such that in case of the node shutting down, they are lost but the participants waiting for a transaction result will simply timeout. The finalized response aggregations are stored in the provided FinalizedResponseStore. It is expected that fetchPendingRequestIdsBefore operation is not called concurrently with operations to modify the pending requests.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MediatorState
  2. NamedLogging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MediatorState(finalizedResponseStore: FinalizedResponseStore, metrics: MediatorMetrics, 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. def add(responseAggregation: ResponseAggregation)(implicit traceContext: TraceContext): Future[Unit]

    Adds an incoming ResponseAggregation

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def fetch(requestId: RequestId)(implicit traceContext: TraceContext): EitherT[Future, MediatorRequestNotFound, ResponseAggregation]
  10. val finalizedResponseStore: FinalizedResponseStore
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def getPending(requestId: RequestId): Option[ResponseAggregation]

    Fetch a response aggregation from the pending requests collection.

  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  16. val loggerFactory: NamedLoggerFactory
    Attributes
    protected
    Definition Classes
    MediatorStateNamedLogging
  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 pendingRequestIdsBefore(cutoff: CantonTimestamp): List[RequestId]

    Fetch pending requests that have a timestamp below the provided cutoff

  23. def prune(pruneRequestsBeforeAndIncludingTs: CantonTimestamp)(implicit traceContext: TraceContext): Future[Unit]

    Prune unnecessary data from before and including the given timestamp which should be calculated by the Mediator based on the participant response timeout domain parameters.

    Prune unnecessary data from before and including the given timestamp which should be calculated by the Mediator based on the participant response timeout domain parameters. In practice a much larger retention period may be kept.

  24. def replace(oldValue: ResponseAggregation, newValue: ResponseAggregation)(implicit traceContext: TraceContext): EitherT[Future, StaleVersion, Unit]

    Replaces a ResponseAggregation for the requestId if the stored version matches currentVersion.

    Replaces a ResponseAggregation for the requestId if the stored version matches currentVersion. You can only use this to update non-finalized aggregations

  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. 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