c
com.digitalasset.canton.synchronizer.sequencer.block.bftordering.utils
FairBoundedQueue
Companion object FairBoundedQueue
class FairBoundedQueue[ItemType] extends AnyRef
Provides fairness by having a per-node quota while preserving the original arrival order on top of the bare com.digitalasset.canton.util.collection.BoundedQueue. For simplicity/safety does not implement any collection-like interface. The implementation is not thread-safe.
Linear Supertypes
Ordering
- Alphabetic
 - By Inheritance
 
Inherited
- FairBoundedQueue
 - AnyRef
 - Any
 
- Hide All
 - Show All
 
Visibility
- Public
 - Protected
 
Instance Constructors
-  new FairBoundedQueue(maxQueueSize: Int, perNodeQuota: Int, dropStrategy: DropStrategy = BoundedQueue.DropStrategy.DropOldest, deduplicationStrategy: DeduplicationStrategy = DeduplicationStrategy.Noop, metrics: Option[BftOrderingMetrics] = None, sizeGauge: Option[Gauge[Int]] = None, maxSizeGauge: Option[Gauge[Int]] = None, dropMeter: Option[Meter] = None, orderingStageLatencyLabel: Option[String] = None)(implicit metricsContext: MetricsContext)
 
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 dequeue()(implicit metricsContext: MetricsContext): Option[ItemType]
 -  def dequeueAll(predicate: (ItemType) => Boolean)(implicit metricsContext: MetricsContext): Seq[ItemType]
 -  def enqueue(nodeId: BftNodeId, item: ItemType)(implicit metricsContext: MetricsContext): EnqueueResult
 -   final  def eq(arg0: AnyRef): Boolean
- Definition Classes
 - AnyRef
 
 -    def equals(arg0: AnyRef): Boolean
- Definition Classes
 - AnyRef → Any
 
 -   final  def getClass(): Class[_ <: AnyRef]
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @IntrinsicCandidate() @native()
 
 -    def hashCode(): Int
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @IntrinsicCandidate() @native()
 
 -   final  def isInstanceOf[T0]: Boolean
- Definition Classes
 - Any
 
 -   final  def ne(arg0: AnyRef): Boolean
- Definition Classes
 - AnyRef
 
 -   final  def notify(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @IntrinsicCandidate() @native()
 
 -   final  def notifyAll(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @IntrinsicCandidate() @native()
 
 -  def size: Int
 -   final  def synchronized[T0](arg0: => T0): T0
- Definition Classes
 - AnyRef
 
 -    def toString(): String
- Definition Classes
 - AnyRef → Any
 
 -   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])
 
 -   final  def wait(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.InterruptedException])