class TrafficStateController extends NamedLogging
Maintains the current traffic state up to date for a given synchronizer.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TrafficStateController
- NamedLogging
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new TrafficStateController(member: Member, loggerFactory: NamedLoggerFactory, topologyClient: SyncCryptoClient[SyncCryptoApi], initialTrafficState: TrafficState, protocolVersion: ProtocolVersion, eventCostCalculator: EventCostCalculator, metrics: TrafficConsumptionMetrics, synchronizerId: SynchronizerId)
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]) @IntrinsicCandidate() @native()
- def computeCost(batch: Batch[DefaultOpenEnvelope], snapshot: TopologySnapshot)(implicit ec: ExecutionContext, tc: TraceContext): FutureUnlessShutdown[Option[SequencingSubmissionCost]]
Compute the cost of a batch of envelopes.
Compute the cost of a batch of envelopes. Does NOT debit the cost from the current traffic purchased.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getState: TrafficState
- def getTrafficConsumed: TrafficConsumed
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logger: TracedLogger
- Attributes
- protected
- Definition Classes
- NamedLogging
- val loggerFactory: NamedLoggerFactory
- Definition Classes
- TrafficStateController → NamedLogging
- val member: Member
- implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noTracingLogger: Logger
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tickStateAt(sequencingTimestamp: CantonTimestamp)(implicit executionContext: ExecutionContext, traceContext: TraceContext): Unit
Used when we receive a deliver error receipt for an event that did not consume traffic.
Used when we receive a deliver error receipt for an event that did not consume traffic. It will still update the traffic state to reflect the base traffic remainder at the provided timestamp.
- def toString(): String
- Definition Classes
- AnyRef → Any
- def updateBalance(newTrafficPurchased: NonNegativeLong, serial: PositiveInt, timestamp: CantonTimestamp)(implicit tc: TraceContext): Unit
Update the traffic purchased entry for this member.
Update the traffic purchased entry for this member. Only if the provided traffic purchased has a higher or equal serial number than the current traffic purchased.
- def updateWithReceipt(trafficReceipt: TrafficReceipt, timestamp: CantonTimestamp, deliverErrorReason: Option[String], eventSpecificMetricsContext: MetricsContext): Unit
- 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])