c

com.digitalasset.canton.domain.mediator

DefaultMediatorEventDeduplicator

class DefaultMediatorEventDeduplicator extends MediatorEventDeduplicator with NamedLogging

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

Instance Constructors

  1. new DefaultMediatorEventDeduplicator(store: MediatorDeduplicationStore, verdictSender: VerdictSender, getDeduplicationTimeout: (Traced[CantonTimestamp]) => Future[Duration], getDecisionTime: (Traced[CantonTimestamp]) => Future[CantonTimestamp], protocolVersion: ProtocolVersion, loggerFactory: NamedLoggerFactory)(implicit executionContext: 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() @IntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  13. val loggerFactory: NamedLoggerFactory
    Attributes
    protected
    Definition Classes
    DefaultMediatorEventDeduplicatorNamedLogging
  14. implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. def rejectDuplicates(requestTimestamp: CantonTimestamp, envelopes: Seq[DefaultOpenEnvelope])(implicit traceContext: TraceContext, callerCloseContext: CloseContext): Future[(Seq[DefaultOpenEnvelope], Future[Unit])]

    See the comment of the other rejectDuplicates method.

    See the comment of the other rejectDuplicates method.

    returns

    (uniqueEnvelopes, storeF), where uniqueEnvelopes contains those elements of envelopes that have no UUID or a unique UUID and storeF completes when the persistent state has been updated and all rejections have been sent.

    Definition Classes
    DefaultMediatorEventDeduplicator → MediatorEventDeduplicator
  20. def rejectDuplicates(envelopesByEvent: Seq[(TracedProtocolEvent, Seq[DefaultOpenEnvelope])])(implicit executionContext: ExecutionContext, callerCloseContext: CloseContext): Future[(Seq[(TracedProtocolEvent, Seq[DefaultOpenEnvelope])], Future[Unit])]

    Reads the request uuids of envelopes and checks for duplicates: If the uuid of an envelope has been used previously and the previous usage has not expired by the sequencer timestamp of the corresponding event, then the event is rejected through the sequencer client.

    Reads the request uuids of envelopes and checks for duplicates: If the uuid of an envelope has been used previously and the previous usage has not expired by the sequencer timestamp of the corresponding event, then the event is rejected through the sequencer client. If the uuid of an envelope is fresh, it will be stored as being "in use".

    The method should not be called concurrently. The method may be invoked again, as soon as the future returned by the previous invocation has completed, i.e., rejectDuplicates(...).isComplete.

    returns

    (uniqueEnvelopesByEvent, storeF): uniqueEnvelopesByEvent contains those elements of envelopesByEvent that have no UUID or a unique UUID. storeF completes when the persistent state has been updated and all rejections have been sent. The method rejectDuplicates may be invoked again while storeF is still running; The event should be considered clean only when storeF is completed.

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

Inherited from NamedLogging

Inherited from MediatorEventDeduplicator

Inherited from AnyRef

Inherited from Any

Ungrouped