Packages

c

com.digitalasset.canton.synchronizer.block.data.memory

InMemorySequencerBlockStore

class InMemorySequencerBlockStore extends SequencerBlockStore with NamedLogging

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InMemorySequencerBlockStore
  2. NamedLogging
  3. SequencerBlockStore
  4. AutoCloseable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new InMemorySequencerBlockStore(inMemorySequencerStore: InMemorySequencerStore, loggerFactory: NamedLoggerFactory)

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]) @IntrinsicCandidate() @native()
  6. def close(): Unit
    Definition Classes
    InMemorySequencerBlockStore → AutoCloseable
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  10. implicit val executionContext: ExecutionContext
    Attributes
    protected
    Definition Classes
    InMemorySequencerBlockStoreSequencerBlockStore
  11. def finalizeBlockUpdate(block: BlockInfo)(implicit traceContext: TraceContext): FutureUnlessShutdown[Unit]

    Finalizes the current block whose updates have been added in the calls to partialBlockUpdate since the last call to finalizeBlockUpdate.

    Finalizes the current block whose updates have been added in the calls to partialBlockUpdate since the last call to finalizeBlockUpdate.

    This method must not be called concurrently with itself or partialBlockUpdate, and must be called for the blocks in monotonically increasing order of height.

    block

    The block information about the current block. It is the responsibility of the caller to ensure that the height increases monotonically by one

    Definition Classes
    InMemorySequencerBlockStoreSequencerBlockStore
  12. def findBlockContainingTimestamp(timestamp: CantonTimestamp)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, SequencerError, BlockInfo]

    The block information for the block that contains the requested timestamp.

    The block information for the block that contains the requested timestamp.

    Definition Classes
    InMemorySequencerBlockStoreSequencerBlockStore
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  17. val loggerFactory: NamedLoggerFactory
    Attributes
    protected
    Definition Classes
    InMemorySequencerBlockStoreNamedLogging
  18. implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  23. def partialBlockUpdate(inFlightAggregationUpdates: InFlightAggregationUpdates)(implicit traceContext: TraceContext): FutureUnlessShutdown[Unit]

    Stores some updates that happen in a single block.

    Stores some updates that happen in a single block. May be called several times for the same block and the same update may be contained in several of the calls. Before adding updates of a subsequent block, finalizeBlockUpdate must be called to wrap up the current block.

    This method must not be called concurrently with itself or finalizeBlockUpdate.

    Definition Classes
    InMemorySequencerBlockStoreSequencerBlockStore
  24. def prune(requestedTimestamp: CantonTimestamp)(implicit traceContext: TraceContext): FutureUnlessShutdown[String]
  25. def readHead(implicit traceContext: TraceContext): FutureUnlessShutdown[BlockEphemeralState]

    The current state of the sequencer, which can be used when the node is restarted to deterministically derive the following counters and timestamps.

    The current state of the sequencer, which can be used when the node is restarted to deterministically derive the following counters and timestamps.

    The state excludes updates of unfinalized blocks added with partialBlockUpdate.

    Definition Classes
    InMemorySequencerBlockStoreSequencerBlockStore
  26. def readStateForBlockContainingTimestamp(timestamp: CantonTimestamp, maxSequencingTimeBound: CantonTimestamp)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, SequencerError, BlockEphemeralState]

    The state at the end of the block that contains the given timestamp.

    The state at the end of the block that contains the given timestamp. This will typically be used to inform other sequencer nodes being initialized of the initial state they should use based on the timestamp they provide which is typically the timestamp of their signing key.

    timestamp

    timestamp within the block being requested (i.e. BlockInfo.lastTs)

    maxSequencingTimeBound

    optional bound for requesting the state for the sequencer snapshot, that may be far in the past, thus needing to bound the db io. Can be computed with SequencerUtils.maxSequencingTimeBoundAt. For requesting the latest state during the sequencer startup, this can be set to CantonTimestamp.MaxValue.

    Definition Classes
    InMemorySequencerBlockStoreSequencerBlockStore
  27. def setInitialState(initialSequencerState: SequencerInitialState, maybeOnboardingTopologyEffectiveTimestamp: Option[CantonTimestamp])(implicit traceContext: TraceContext): FutureUnlessShutdown[Unit]

    Set initial state of the sequencer node from which it supports serving requests.

    Set initial state of the sequencer node from which it supports serving requests. This should be called at most once. If not called, it means this sequencer node can server requests from genesis.

    Definition Classes
    InMemorySequencerBlockStoreSequencerBlockStore
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. 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 SequencerBlockStore

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped