package sequencing
- Alphabetic
- By Inheritance
- sequencing
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
Type Members
- trait ApplicationHandler[-Box[+_ <: Envelope[_]], -Env <: Envelope[_]] extends (BoxedEnvelope[Box, Env]) => HandlerResult
An application handler processes boxed envelopes and returns a HandlerResult
- final case class AsyncResult(unwrap: FutureUnlessShutdown[Unit]) extends Product with Serializable
The asynchronous part of processing an event (or of a stage of its processing).
The asynchronous part of processing an event (or of a stage of its processing).
- Annotations
- @DoNotDiscardLikeFuture()
- type BoxedEnvelope[+Box[+_ <: Envelope[_]], +Env <: Envelope[_]] = Box[Env]
It is convenient to consider the envelopes and all the structure around the envelopes (the box).
It is convenient to consider the envelopes and all the structure around the envelopes (the box). EnvelopeBox defines type class operations to manipulate
- class DelayLogger extends AnyRef
Wrapper for a sequencer subscription event handler that will log warnings if the timestamps of received messages appear significantly behind this consumer's clock.
- trait EnvelopeBox[Box[+_ <: Envelope[_]]] extends AnyRef
Type class to manipulate envelopes inside their box.
Type class to manipulate envelopes inside their box. Specializes cats.Traverse to protocol.Envelope arguments.
- type EnvelopeHandler = ApplicationHandler[NoEnvelopeBox, DefaultOpenEnvelope]
- final case class GrpcSequencerConnection(endpoints: NonEmpty[Seq[Endpoint]], transportSecurity: Boolean, customTrustCertificates: Option[ByteString], sequencerAlias: SequencerAlias) extends SequencerConnection with Product with Serializable
- type HandlerResult = FutureUnlessShutdown[AsyncResult]
A handler processes an event synchronously in the scala.concurrent.Future and returns an AsyncResult that may be computed asynchronously by the contained future.
A handler processes an event synchronously in the scala.concurrent.Future and returns an AsyncResult that may be computed asynchronously by the contained future. Asynchronous processing may run concurrently with later events' synchronous processing and with asynchronous processing of other events.
- type NoEnvelopeBox[+E <: Envelope[_]] = Traced[Seq[E]]
- type OrdinaryApplicationHandler[-E <: Envelope[_]] = ApplicationHandler[OrdinaryEnvelopeBox, E]
- type OrdinaryEnvelopeBox[+E <: Envelope[_]] = Traced[Seq[OrdinarySequencedEvent[E]]]
Default box for signed batches of events The outer
Traced
contains a trace context for the entire batch. - type OrdinaryProtocolEvent = OrdinarySequencedEvent[DefaultOpenEnvelope]
Default type for deserialized events.
Default type for deserialized events. Includes a signature and a trace context.
- type OrdinarySerializedEvent = OrdinarySequencedEvent[ClosedEnvelope]
Default type for serialized events.
Default type for serialized events. Contains trace context and signature.
- type PossiblyIgnoredApplicationHandler[-E <: Envelope[_]] = ApplicationHandler[PossiblyIgnoredEnvelopeBox, E]
- type PossiblyIgnoredEnvelopeBox[+E <: Envelope[_]] = Traced[Seq[PossiblyIgnoredSequencedEvent[E]]]
Default box for
PossiblyIgnoredProtocolEvents
.Default box for
PossiblyIgnoredProtocolEvents
. The outerTraced
contains a trace context for the entire batch. - type PossiblyIgnoredProtocolEvent = PossiblyIgnoredSequencedEvent[DefaultOpenEnvelope]
Deserialized event with optional payload.
- type PossiblyIgnoredSerializedEvent = PossiblyIgnoredSequencedEvent[ClosedEnvelope]
- type RawProtocolEvent = SequencedEvent[DefaultOpenEnvelope]
Default type for deserialized events.
Default type for deserialized events. The term "raw" indicates that the trace context is missing. Try to use
TracedProtocolEvent
instead. - type RawSignedContentEnvelopeBox[+Env <: Envelope[_]] = SignedContent[SequencedEvent[Env]]
Just a signature around the com.digitalasset.canton.sequencing.protocol.SequencedEvent The term "raw" indicates that the trace context is missing.
Just a signature around the com.digitalasset.canton.sequencing.protocol.SequencedEvent The term "raw" indicates that the trace context is missing. Try to use the box OrdinarySerializedEvent instead.
- sealed trait ResubscriptionStart extends SubscriptionStart
The subscription is a resubscription.
The subscription is a resubscription. The application handler may have previously been called with an event.
- class SequencerAggregator extends NamedLogging with FlagCloseable
- class SequencerClientRecorder extends FlagCloseable with NamedLogging
Record interactions that the Sequencer client has with its domain.
Record interactions that the Sequencer client has with its domain. If enabled will record sends to the Sequencer and events received from the Sequencer subscription. Callers must call
start
with a path for recording before recording sequencer interactions. - sealed trait SequencerConnection extends PrettyPrinting
Our com.digitalasset.canton.config.SequencerConnectionConfig provides a flexible structure for configuring how the domain and its members talk to a sequencer.
Our com.digitalasset.canton.config.SequencerConnectionConfig provides a flexible structure for configuring how the domain and its members talk to a sequencer. It however leaves much information intentionally optional so it can be inferred at runtime based on information that may only be available at the point of creating a sequencer connection (for instance defaulting to domain connection information that a user has provided in an admin command). At this point these structures can then be constructed which contain all the mandatory details that sequencer clients need to actually connect.
- final case class SequencerConnections extends PrettyPrinting with HasRepresentativeProtocolVersion with HasProtocolVersionedWrapper[SequencerConnections] with Product with Serializable
- type SerializedEventHandler[Err] = (OrdinarySerializedEvent) => Future[Either[Err, Unit]]
Default type for handlers on serialized events with error reporting
- sealed trait SubscriptionStart extends Product with Serializable with PrettyPrinting
Information passed by the com.digitalasset.canton.sequencing.client.SequencerClient to the ApplicationHandler where the subscription (= processing of events) starts.
Information passed by the com.digitalasset.canton.sequencing.client.SequencerClient to the ApplicationHandler where the subscription (= processing of events) starts. The ApplicationHandler can then initialize itself appropriately.
- type TracedProtocolEvent = Traced[RawProtocolEvent]
Deserialized event with a trace context.
Deserialized event with a trace context. Use this when you are really sure that a signature will never be needed.
- final case class TrafficControlConfig(baseRate: NonNegativeLong = DefaultBaseRate, readVsWriteScalingFactor: PositiveInt = PositiveInt.tryCreate(200), maxBurstDuration: NonNegativeDuration = DefaultMaxBurstDuration) extends Product with Serializable
Traffic control configuration values - stored as dynamic domain parameters
Traffic control configuration values - stored as dynamic domain parameters
- baseRate
amount of byte per second acquired as "free" traffic per member
- readVsWriteScalingFactor
multiplier used to compute cost of an event. In per ten-mil (1 / 10 000). Defaults to 200 (=2%). A multiplier of 2% means the base cost will be increased by 2% to produce the effective cost.
- maxBurstDuration
maximum amount of time the base rate traffic will accumulate before being capped
- type UnsignedApplicationHandler[-E <: Envelope[_]] = ApplicationHandler[UnsignedEnvelopeBox, E]
- type UnsignedEnvelopeBox[+E <: Envelope[_]] = Traced[Seq[Traced[SequencedEvent[E]]]]
A batch of traced protocol events (without a signature).
A batch of traced protocol events (without a signature). The outer
Traced
contains a trace context for the entire batch. - type UnsignedProtocolEventHandler = ApplicationHandler[UnsignedEnvelopeBox, DefaultOpenEnvelope]
Value Members
- object ApplicationHandler
- object AsyncResult extends Serializable
- object EnvelopeBox
- object GrpcSequencerConnection extends Serializable
- object HandlerResult
- object SequencerAggregator
- object SequencerClientRecorder
- object SequencerConnection
- object SequencerConnections extends HasProtocolVersionedCompanion[SequencerConnections] with ProtocolVersionedCompanionDbHelpers[SequencerConnections]
- object SubscriptionStart extends Serializable
- object TrafficControlConfig extends Serializable