class InMemoryParticipantEventLog extends InMemorySingleDimensionEventLog[ParticipantEventLogId] with ParticipantEventLog

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

Instance Constructors

  1. new InMemoryParticipantEventLog(id: ParticipantEventLogId, loggerFactory: NamedLoggerFactory)(implicit ec: ExecutionContext)

Type Members

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

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. def close(): Unit
    Definition Classes
    InMemoryParticipantEventLog → AutoCloseable
  7. def deleteAfter(exclusive: LocalOffset)(implicit traceContext: TraceContext): Future[Unit]

    Deletes all events whose local offset is greater than exclusive.

    Deletes all events whose local offset is greater than exclusive. This operation need not execute atomically.

    Definition Classes
    InMemorySingleDimensionEventLogSingleDimensionEventLog
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  11. def eventAt(offset: LocalOffset)(implicit traceContext: TraceContext): OptionT[Future, TimestampedEvent]
  12. def eventById(eventId: EventId)(implicit traceContext: TraceContext): OptionT[Future, TimestampedEvent]
  13. def eventByTransactionId(transactionId: LedgerTransactionId)(implicit traceContext: TraceContext): OptionT[Future, TimestampedEvent]
    Definition Classes
    SingleDimensionEventLog
  14. implicit val executionContext: ExecutionContext
    Attributes
    protected
    Definition Classes
    InMemorySingleDimensionEventLogSingleDimensionEventLog
  15. 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
  16. def firstEventWithAssociatedDomainAtOrAfter(associatedDomain: DomainId, atOrAfter: CantonTimestamp)(implicit traceContext: TraceContext): Future[Option[TimestampedEvent]]

    Returns the first event (by offset ordering) whose com.digitalasset.canton.participant.sync.TimestampedEvent.EventId has the given associatedDomain and whose timestamp is at or after atOrAfter.

    Returns the first event (by offset ordering) whose com.digitalasset.canton.participant.sync.TimestampedEvent.EventId has the given associatedDomain and whose timestamp is at or after atOrAfter.

    Definition Classes
    InMemoryParticipantEventLogParticipantEventLog
    Exceptions thrown

    java.lang.UnsupportedOperationException if this event log is not the participant event log.

  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  19. val id: ParticipantEventLogId
  20. def insert(event: TimestampedEvent)(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.

  21. def insertsUnlessEventIdClash(events: Seq[TimestampedEvent])(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.

  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def lastOffset(implicit traceContext: TraceContext): OptionT[Future, LocalOffset]
  24. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  25. val loggerFactory: NamedLoggerFactory
    Attributes
    protected
    Definition Classes
    InMemorySingleDimensionEventLogNamedLogging
  26. def lookupEventRange(fromExclusive: Option[LocalOffset], toInclusive: Option[LocalOffset], fromTimestampInclusive: Option[CantonTimestamp], toTimestampInclusive: Option[CantonTimestamp], limit: Option[Int])(implicit traceContext: TraceContext): Future[SortedMap[LocalOffset, TimestampedEvent]]
  27. implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def nextLocalOffset()(implicit traceContext: TraceContext): Future[LocalOffset]

    Allocates the next local offset

    Allocates the next local offset

    Definition Classes
    ParticipantEventLog
  30. def nextLocalOffsets(count: NonNegativeInt)(implicit traceContext: TraceContext): Future[Seq[LocalOffset]]

    Allocates count many new offsets and returns all of them.

    Allocates count many new offsets and returns all of them.

    Definition Classes
    InMemoryParticipantEventLogParticipantEventLog
  31. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  34. def prune(beforeAndIncluding: LocalOffset)(implicit traceContext: TraceContext): Future[Unit]
  35. val state: AtomicReference[Entries]
    Attributes
    protected
    Definition Classes
    InMemorySingleDimensionEventLog
  36. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  40. 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 ParticipantEventLog

Inherited from AutoCloseable

Inherited from NamedLogging

Inherited from AnyRef

Inherited from Any

Ungrouped