c

com.digitalasset.canton.participant.store.memory

InMemorySingleDimensionEventLog

class InMemorySingleDimensionEventLog[+Id <: EventLogId] extends SingleDimensionEventLog[Id] with NamedLogging

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InMemorySingleDimensionEventLog
  2. NamedLogging
  3. SingleDimensionEventLog
  4. SingleDimensionEventLogLookup
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new InMemorySingleDimensionEventLog(id: Id, loggerFactory: NamedLoggerFactory)(implicit executionContext: ExecutionContext)

Type Members

  1. case class Entries(eventsByOffset: SortedMap[LocalOffset, TimestampedEventAndCausalChange], eventsByEventId: Map[EventId, TimestampedEventAndCausalChange]) extends Product with Serializable
    Attributes
    protected

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() @HotSpotIntrinsicCandidate()
  6. def deleteSince(inclusive: LocalOffset)(implicit traceContext: TraceContext): Future[Unit]

    Deletes all events whose request counter is at least inclusive.

    Deletes all events whose request counter is at least inclusive. This operation need not execute atomically.

    Definition Classes
    InMemorySingleDimensionEventLogSingleDimensionEventLog
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def eventAt(offset: LocalOffset)(implicit traceContext: TraceContext): OptionT[Future, TimestampedEventAndCausalChange]
  10. def eventById(eventId: EventId)(implicit traceContext: TraceContext): OptionT[Future, TimestampedEventAndCausalChange]
  11. def eventByTransactionId(transactionId: LedgerTransactionId)(implicit traceContext: TraceContext): OptionT[Future, TimestampedEventAndCausalChange]
    Definition Classes
    SingleDimensionEventLog
  12. implicit val executionContext: ExecutionContext
    Attributes
    protected
    Definition Classes
    InMemorySingleDimensionEventLogSingleDimensionEventLog
  13. def existsBetween(timestampInclusive: CantonTimestamp, localOffsetInclusive: LocalOffset)(implicit traceContext: TraceContext): Future[Boolean]

    Returns whether there exists an event in the event log with an com.digitalasset.canton.participant.LocalOffset of at most localOffset whose timestamp is at least timestamp.

    Returns whether there exists an event in the event log with an com.digitalasset.canton.participant.LocalOffset of at most localOffset whose timestamp is at least timestamp.

    In an event logs where timestamps need not increase with offsets, this can be used to check that whether there are events with lower offsets and larger timestamps.

    Definition Classes
    InMemorySingleDimensionEventLogSingleDimensionEventLog
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. val id: Id
  17. def insert(event: TimestampedEvent, causalityUpdate: Option[CausalityUpdate])(implicit traceContext: TraceContext): Future[Unit]

    Publishes an event and fails upon an event ID clash.

    Publishes an event and fails upon an event ID clash.

    Definition Classes
    SingleDimensionEventLog
    Exceptions thrown

    java.lang.IllegalArgumentException if a different event has already been published with the same com.digitalasset.canton.participant.LocalOffset or an event with the same com.digitalasset.canton.participant.sync.TimestampedEvent.EventId has been published with a different (unpruned) com.digitalasset.canton.participant.LocalOffset.

  18. def insertUnlessEventIdClash(event: TimestampedEvent, causalityUpdate: Option[CausalityUpdate])(implicit traceContext: TraceContext): EitherT[Future, TimestampedEvent, Unit]

    Publishes an event and the change in causality state associated with the event.

    Publishes an event and the change in causality state associated with the event.

    returns

    scala.Left$ if an event with the same event ID has been published with a different (unpruned) com.digitalasset.canton.participant.LocalOffset. Returns the conflicting event.

    Definition Classes
    SingleDimensionEventLog
    Exceptions thrown

    java.lang.IllegalArgumentException if a different event has already been published with the same com.digitalasset.canton.participant.LocalOffset

  19. def insertsUnlessEventIdClash(events: Seq[TimestampedEventAndCausalChange])(implicit traceContext: TraceContext): Future[Seq[Either[TimestampedEvent, Unit]]]

    Publishes many events.

    Publishes many events.

    returns

    For each event in events in the same order: scala.Left$ of the conficting event if an event with the same event ID has been published with a different (unpruned) com.digitalasset.canton.participant.LocalOffset. scala.Right$ if the event has been successfully inserted or has already been present in the event log

    Definition Classes
    InMemorySingleDimensionEventLogSingleDimensionEventLog
    Exceptions thrown

    java.lang.IllegalArgumentException if a different event has already been published with the same com.digitalasset.canton.participant.LocalOffset as one of the events in events.

  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def lastOffset(implicit traceContext: TraceContext): OptionT[Future, LocalOffset]
  22. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  23. val loggerFactory: NamedLoggerFactory
    Attributes
    protected
    Definition Classes
    InMemorySingleDimensionEventLogNamedLogging
  24. implicit def loggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  25. def lookupEventRange(fromInclusive: Option[LocalOffset], toInclusive: Option[LocalOffset], fromTimestampInclusive: Option[CantonTimestamp], toTimestampInclusive: Option[CantonTimestamp], limit: Option[Int])(implicit traceContext: TraceContext): Future[SortedMap[LocalOffset, TimestampedEventAndCausalChange]]
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. def prune(beforeAndIncluding: LocalOffset)(implicit traceContext: TraceContext): Future[Unit]
  31. val state: AtomicReference[Entries]
    Attributes
    protected
  32. def storeTransferUpdate(causalityUpdate: CausalityUpdate)(implicit tc: TraceContext): Future[Unit]
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  37. 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 SingleDimensionEventLog[Id]

Inherited from AnyRef

Inherited from Any

Ungrouped