package traffic
- Alphabetic
- Public
- Protected
Type Members
- class EventCostCalculator extends NamedLogging
- final case class TrafficConsumed(member: Member, sequencingTimestamp: CantonTimestamp, extraTrafficConsumed: NonNegativeLong, baseTrafficRemainder: NonNegativeLong, lastConsumedCost: NonNegativeLong) extends PrettyPrinting with Product with Serializable
State of the traffic consumed by a member at a given time.
State of the traffic consumed by a member at a given time.
- member
Member consuming the traffic
- sequencingTimestamp
sequencing timestamp at which this traffic consumed state is valid
- extraTrafficConsumed
extra traffic consumed at this sequencing timestamp
- baseTrafficRemainder
base traffic remaining at this sequencing timestamp
- lastConsumedCost
last cost deducted from the traffic balance (base and if not enough, extra)
- class TrafficConsumedManager extends NamedLogging
Holds the traffic consumed state of a member.
Holds the traffic consumed state of a member. This is used by the sequencer to keep track of the traffic consumed by its members, as well as by the members themselves in the TrafficStateController to keep track of their own traffic consumed.
- class TrafficControlProcessor extends UnsignedProtocolEventHandler with NamedLogging
- final case class TrafficPurchased(member: Member, serial: PositiveInt, extraTrafficPurchased: NonNegativeLong, sequencingTimestamp: CantonTimestamp) extends PrettyPrinting with Product with Serializable
Total traffic purchased for a member valid at a specific timestamp
Total traffic purchased for a member valid at a specific timestamp
- member
Member to which the balance belongs
- serial
Serial number of the balance
- extraTrafficPurchased
Traffic purchased value
- sequencingTimestamp
Timestamp at which the purchase event was sequenced
- class TrafficPurchasedSubmissionHandler extends NamedLogging
Utility class to send traffic purchased entry requests protocol messages to be sequenced.
Utility class to send traffic purchased entry requests protocol messages to be sequenced. This is abstracted out so that it can be re-used in any node's Admin API.
- final case class TrafficReceipt(consumedCost: NonNegativeLong, extraTrafficConsumed: NonNegativeLong, baseTrafficRemainder: NonNegativeLong) extends PrettyPrinting with Product with Serializable
Traffic receipt sent with the deliver / deliver error receipt to the sender.
Traffic receipt sent with the deliver / deliver error receipt to the sender. Contains updated traffic information after the event has been sequenced.
- consumedCost
cost consumed by the event
- extraTrafficConsumed
extra traffic consumed at this sequencing timestamp
- baseTrafficRemainder
base traffic remaining at this sequencing timestamp
- class TrafficStateController extends NamedLogging
Maintains the current traffic state up to date for a given synchronizer.
Value Members
- object EventCostCalculator
- object TrafficConsumed extends Serializable
- object TrafficConsumedManager
- object TrafficControlErrors extends TrafficControlErrorGroup
- object TrafficControlProcessor
- object TrafficPurchased extends Serializable
- object TrafficReceipt extends Serializable