Packages

trait SequencerRateLimitManager extends AnyRef

Holds the traffic control state and control rate limiting logic of members of a sequencer

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

Abstract Value Members

  1. abstract def consume(sender: Member, batch: Batch[ClosedEnvelope], sequencingTimestamp: CantonTimestamp, trafficState: TrafficState, trafficControlConfig: TrafficControlParameters, groupToMembers: Map[GroupRecipient, Set[Member]])(implicit ec: ExecutionContext, tc: TraceContext): EitherT[Future, SequencerRateLimitError, TrafficState]

    Consume the traffic costs of the submission request from the sender's traffic state.

    Consume the traffic costs of the submission request from the sender's traffic state.

    NOTE: This method must be called in order of the sequencing timestamps.

  2. abstract def createNewTrafficStateAt(member: Member, timestamp: CantonTimestamp, trafficControlConfig: TrafficControlParameters)(implicit ec: ExecutionContext, tc: TraceContext): Future[TrafficState]

    Create a traffic state for a new member at the given timestamp.

    Create a traffic state for a new member at the given timestamp. Its base traffic remainder will be equal to the max burst window configured at that point in time.

  3. abstract def getTrafficStatusFor(members: Map[Member, TrafficState])(implicit ec: ExecutionContext, tc: TraceContext): Future[Seq[MemberTrafficStatus]]

    Compute the traffic status (including effective traffic limit) for members based on their traffic state

  4. abstract def topUp(member: Member, newExtraTrafficTotal: TopUpEvent)(implicit ec: ExecutionContext, tc: TraceContext): Future[Unit]

    Top up a member with its new extra traffic limit.

    Top up a member with its new extra traffic limit. Must be strictly increasing between subsequent calls.

    member

    member to top up

    newExtraTrafficTotal

    new limit

  5. abstract def updateTrafficStates(partialTrafficStates: Map[Member, TrafficState], timestamp: CantonTimestamp, trafficControlConfig: TrafficControlParameters)(implicit ec: ExecutionContext, tc: TraceContext): Future[Map[Member, TrafficState]]

    Takes a partial map of traffic states and update them to be up to date with the given timestamp.

    Takes a partial map of traffic states and update them to be up to date with the given timestamp. In particular recompute relevant state fields for the effective extra traffic limit at that timestamp. The return state map will be merged back into the complete state.

Concrete 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]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  18. 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
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped