trait ParticipantEventLog extends SingleDimensionEventLog[ParticipantEventLogId] with AutoCloseable
- Alphabetic
- By Inheritance
- ParticipantEventLog
- AutoCloseable
- SingleDimensionEventLog
- SingleDimensionEventLogLookup
- 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 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
- SingleDimensionEventLog
- abstract def eventAt(offset: LocalOffset)(implicit traceContext: TraceContext): OptionT[Future, TimestampedEvent]
- Definition Classes
- SingleDimensionEventLogLookup
- abstract def eventById(eventId: EventId)(implicit traceContext: TraceContext): OptionT[Future, TimestampedEvent]
- Definition Classes
- SingleDimensionEventLog
- implicit abstract def executionContext: ExecutionContext
- Attributes
- protected
- Definition Classes
- SingleDimensionEventLog
- abstract 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 afteratOrAfter
.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 afteratOrAfter
.- Exceptions thrown
java.lang.UnsupportedOperationException
if this event log is not the participant event log.
- abstract def id: ParticipantEventLogId
- Definition Classes
- SingleDimensionEventLog
- abstract 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
- SingleDimensionEventLog
- 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 inevents
.
- abstract def lookupEventRange(fromExclusive: Option[LocalOffset], toInclusive: Option[LocalOffset], fromTimestampInclusive: Option[CantonTimestamp], toTimestampInclusive: Option[CantonTimestamp], limit: Option[Int])(implicit traceContext: TraceContext): Future[SortedMap[LocalOffset, TimestampedEvent]]
- Definition Classes
- SingleDimensionEventLogLookup
- abstract def nextLocalOffsets(count: NonNegativeInt)(implicit traceContext: TraceContext): Future[Seq[LocalOffset]]
Allocates
count
many new offsets and returns all of them. - abstract def prune(beforeAndIncluding: LocalOffset)(implicit traceContext: TraceContext): Future[Unit]
- Definition Classes
- SingleDimensionEventLog
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() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def eventByTransactionId(transactionId: LedgerTransactionId)(implicit traceContext: TraceContext): OptionT[Future, TimestampedEvent]
- Definition Classes
- SingleDimensionEventLog
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- 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.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nextLocalOffset()(implicit traceContext: TraceContext): Future[LocalOffset]
Allocates the next local offset
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- 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])