class TrafficStateController extends NamedLogging

Maintains the current traffic state up to date for a given synchronizer.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TrafficStateController
  2. NamedLogging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TrafficStateController(member: Member, loggerFactory: NamedLoggerFactory, topologyClient: SyncCryptoClient[SyncCryptoApi], initialTrafficState: TrafficState, protocolVersion: ProtocolVersion, eventCostCalculator: EventCostCalculator, metrics: TrafficConsumptionMetrics, synchronizerId: SynchronizerId)

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 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.

  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. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. def getState: TrafficState
  12. def getTrafficConsumed: TrafficConsumed
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  16. val loggerFactory: NamedLoggerFactory
    Definition Classes
    TrafficStateControllerNamedLogging
  17. val member: Member
  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. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. 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.

  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. 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.

  27. def updateWithReceipt(trafficReceipt: TrafficReceipt, timestamp: CantonTimestamp, deliverErrorReason: Option[String], eventSpecificMetricsContext: MetricsContext): Unit
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. 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 AnyRef

Inherited from Any

Ungrouped