final class CachingSynchronizerTopologyClient extends SynchronizerTopologyClientWithInit with NamedLogging

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CachingSynchronizerTopologyClient
  2. SynchronizerTopologyClientWithInit
  3. NamedLogging
  4. HasFutureSupervision
  5. TopologyTransactionProcessingSubscriber
  6. SynchronizerTopologyClient
  7. AutoCloseable
  8. TopologyClientApi
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CachingSynchronizerTopologyClient(delegate: StoreBasedSynchronizerTopologyClient, cachingConfigs: CachingConfigs, batchingConfig: BatchingConfig, timeouts: ProcessingTimeout, futureSupervisor: FutureSupervisor, loggerFactory: NamedLoggerFactory)(implicit executionContext: ExecutionContext)

Type Members

  1. class SnapshotEntry extends AnyRef

    An entry with a given timestamp refers to the topology snapshot at the same timestamp.

    An entry with a given timestamp refers to the topology snapshot at the same timestamp. This is the snapshot that covers all committed topology transactions with validFrom < timestamp and validUntil.forall(timestamp <= _), following the topology snapshot and effective time semantics.

    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. def approximateTimestamp: CantonTimestamp

    The approximate timestamp

    The approximate timestamp

    This is either the last observed sequencer timestamp OR the effective timestamp after we observed the time difference of (effective - sequencer = epsilon)

    Definition Classes
    CachingSynchronizerTopologyClientTopologyClientApi
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def await(condition: (TopologySnapshot) => Future[Boolean], timeout: Duration)(implicit traceContext: TraceContext): FutureUnlessShutdown[Boolean]

    Wait for a condition to become true according to the current snapshot approximation

    Wait for a condition to become true according to the current snapshot approximation

    returns

    true if the condition became true, false if it timed out

    Definition Classes
    CachingSynchronizerTopologyClientSynchronizerTopologyClient
  7. def awaitMaxTimestamp(sequencedTime: SequencedTime)(implicit traceContext: TraceContext): FutureUnlessShutdown[Option[(SequencedTime, EffectiveTime)]]

    Finds the transaction with maximum effective time that has been sequenced before or at sequencedTime and yields the sequenced / effective time of that transaction.

    Finds the transaction with maximum effective time that has been sequenced before or at sequencedTime and yields the sequenced / effective time of that transaction. Potentially waits for sequencedTime to be observed.

    Definition Classes
    CachingSynchronizerTopologyClientTopologyClientApi
  8. def awaitSequencedTimestamp(timestampInclusive: SequencedTime)(implicit traceContext: TraceContext): Option[FutureUnlessShutdown[Unit]]

    Returns an optional future which will complete when the sequenced timestamp has been observed

    Returns an optional future which will complete when the sequenced timestamp has been observed

    If the timestamp is already observed, returns None.

    Definition Classes
    CachingSynchronizerTopologyClientTopologyClientApi
  9. def awaitSnapshot(timestamp: CantonTimestamp)(implicit traceContext: TraceContext): FutureUnlessShutdown[TopologySnapshot]

    Waits until a snapshot is available

    Waits until a snapshot is available

    The snapshot returned by this method should be used for validating transaction and reassignment requests (Phase 2 - 7). Use the request timestamp as parameter for this method. Do not use a response or result timestamp, because all validation steps must use the same topology snapshot.

    Definition Classes
    SynchronizerTopologyClientWithInitTopologyClientApi
  10. def awaitSnapshotUSSupervised(description: => String, warnAfter: Duration = 30.seconds)(timestamp: CantonTimestamp)(implicit loggingContext: ErrorLoggingContext): FutureUnlessShutdown[TopologySnapshot]

    Supervised version of awaitSnapshot

    Supervised version of awaitSnapshot

    Definition Classes
    TopologyClientApi
  11. def awaitTimestamp(timestamp: CantonTimestamp)(implicit traceContext: TraceContext): Option[FutureUnlessShutdown[Unit]]

    Returns an optional future which will complete when the effective timestamp has been observed

    Returns an optional future which will complete when the effective timestamp has been observed

    If the timestamp is already observed, returns None.

    Definition Classes
    CachingSynchronizerTopologyClientTopologyClientApi
  12. def awaitUS(condition: (TopologySnapshot) => FutureUnlessShutdown[Boolean], timeout: Duration)(implicit traceContext: TraceContext): FutureUnlessShutdown[Boolean]
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  14. def close(): Unit
    Definition Classes
    CachingSynchronizerTopologyClient → AutoCloseable
  15. def currentSnapshotApproximation(implicit traceContext: TraceContext): TopologySnapshotLoader

    Overloaded recent snapshot returning derived type

    Overloaded recent snapshot returning derived type

    Definition Classes
    CachingSynchronizerTopologyClientSynchronizerTopologyClientWithInitTopologyClientApi
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  19. implicit val executionContext: ExecutionContext
  20. def executionOrder: Int

    The order in which the subscriber should be executed among all the subscriptions.

    The order in which the subscriber should be executed among all the subscriptions. Lower values are executed first.

    Definition Classes
    TopologyTransactionProcessingSubscriber
  21. val futureSupervisor: FutureSupervisor
    Attributes
    protected
    Definition Classes
    CachingSynchronizerTopologyClientHasFutureSupervision
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  24. def headSnapshot(implicit traceContext: TraceContext): TopologySnapshot

    Possibly future dated head snapshot

    Possibly future dated head snapshot

    As we future date topology transactions, the head snapshot is our latest knowledge of the topology state, but as it can be still future dated, we need to be careful when actually using it: the state might not yet be active, as the topology transactions are future dated. Therefore, do not act towards the sequencer using this snapshot, but use the currentSnapshotApproximation instead.

    Definition Classes
    TopologyClientApi
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  27. val loggerFactory: NamedLoggerFactory
  28. implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  33. def numPendingChanges: Int

    current number of changes waiting to become effective

    current number of changes waiting to become effective

    Definition Classes
    CachingSynchronizerTopologyClientSynchronizerTopologyClientWithInit
  34. def observed(sequencedTimestamp: SequencedTime, effectiveTimestamp: EffectiveTime, sequencerCounter: SequencerCounter, transactions: Seq[GenericSignedTopologyTransaction])(implicit traceContext: TraceContext): FutureUnlessShutdown[Unit]

    This must be called whenever a topology transaction is committed.

    This must be called whenever a topology transaction is committed. It may be called at additional timestamps with transactions being empty. Calls must have strictly increasing sequencedTimestamp and effectiveTimestamp. The effectiveTimestamp must be the one computed by com.digitalasset.canton.topology.processing.TopologyTimestampPlusEpsilonTracker for sequencedTimestamp.

    During crash recovery previous calls of this method may be replayed. Therefore, implementations must be idempotent.

    Definition Classes
    CachingSynchronizerTopologyClientTopologyTransactionProcessingSubscriber
  35. def setSynchronizerTimeTracker(tracker: SynchronizerTimeTracker): Unit
  36. def snapshot(timestamp: CantonTimestamp)(implicit traceContext: TraceContext): FutureUnlessShutdown[TopologySnapshotLoader]

    Overloaded snapshot returning derived type

    Overloaded snapshot returning derived type

    Definition Classes
    SynchronizerTopologyClientWithInitTopologyClientApi
  37. def snapshotAvailable(timestamp: CantonTimestamp): Boolean

    Returns true if the topology information at the passed timestamp is already known

    Returns true if the topology information at the passed timestamp is already known

    Definition Classes
    CachingSynchronizerTopologyClientTopologyClientApi
  38. val snapshots: AtomicReference[List[SnapshotEntry]]

    List of snapshot timestamps for which snapshots are cached.

    List of snapshot timestamps for which snapshots are cached. Invariants:

    • Entries are sorted descending by timestamp.
    • For every entry, a snapshot at entry.timestamp must be available.
    • If it contains entries with timestamps ts1 and ts3, if there is a valid topology transaction at timestamp ts2, if ts1 < ts2 < ts3, then there must be an entry with ts2 as well.
    Attributes
    protected
  39. def supervised[T](description: => String, warnAfter: Duration = 10.seconds)(fut: Future[T])(implicit loggingContext: ErrorLoggingContext): Future[T]
    Attributes
    protected
    Definition Classes
    HasFutureSupervision
  40. def supervisedUS[T](description: => String, warnAfter: Duration = 10.seconds)(fut: FutureUnlessShutdown[T])(implicit loggingContext: ErrorLoggingContext): FutureUnlessShutdown[T]
    Definition Classes
    HasFutureSupervision
  41. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  42. def synchronizerId: SynchronizerId

    The synchronizer this client applies to

    The synchronizer this client applies to

    Definition Classes
    CachingSynchronizerTopologyClientTopologyClientApi
  43. val synchronizerTimeTracker: SingleUseCell[SynchronizerTimeTracker]
    Attributes
    protected
    Definition Classes
    SynchronizerTopologyClientWithInit
  44. val timeouts: ProcessingTimeout
  45. def toString(): String
    Definition Classes
    AnyRef → Any
  46. def topologyKnownUntilTimestamp: CantonTimestamp

    The most recently observed effective timestamp

    The most recently observed effective timestamp

    The effective timestamp is sequencer_time + epsilon(sequencer_time), where epsilon is given by the topology change delay time, defined using the synchronizer parameters.

    This is the highest timestamp for which we can serve snapshots

    Definition Classes
    CachingSynchronizerTopologyClientTopologyClientApi
  47. def trySnapshot(timestamp: CantonTimestamp)(implicit traceContext: TraceContext): TopologySnapshotLoader

    Returns the topology information at a certain point in time

    Returns the topology information at a certain point in time

    Fails with an exception if the state is not yet known.

    The snapshot returned by this method should be used for validating transaction and reassignment requests (Phase 2 - 7). Use the request timestamp as parameter for this method. Do not use a response or result timestamp, because all validation steps must use the same topology snapshot.

    Definition Classes
    CachingSynchronizerTopologyClientSynchronizerTopologyClientWithInitTopologyClientApi
  48. def updateHead(sequencedTimestamp: SequencedTime, effectiveTimestamp: EffectiveTime, approximateTimestamp: ApproximateTime, potentialTopologyChange: Boolean)(implicit traceContext: TraceContext): Unit

    Move the highest known (effective / approximate) timestamp ahead in the future.

    Move the highest known (effective / approximate) timestamp ahead in the future.

    May only be called if:

    1. All committed topology transactions with effective time up to effectiveTimestamp have been persisted in the topology store.
    2. All committed topology transactions with sequenced time up to sequencedTimestamp have been persisted in the topology store.
    3. If this method is called with potentialTopologyChange == true, then for every subsequent committed topology transaction either updateHead(potentialTopologyChange == true, ...) or observed must be called again; such calls must occur with ascending effective timestamps.
    4. sequencedTimestamp <= effectiveTimestamp
    5. approximateTimestamp <= effectiveTimestamp
    6. A sequenced event with timestamp at least approximateTimestamp has been received from the sequencer.
    Definition Classes
    CachingSynchronizerTopologyClientTopologyTransactionProcessingSubscriber
  49. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  51. 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

    (Since version 9)

Inherited from NamedLogging

Inherited from HasFutureSupervision

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped