trait ConsumerInfo extends AnyRef
- Annotations
- @DoNotInherit()
- Source
- Hub.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- ConsumerInfo
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def consumerIdByIdx(idx: Int): Long
Obtain consumer identifier by index
- abstract def getConsumerIds: [Long]
Sequence of all identifiers of current consumers.
Sequence of all identifiers of current consumers.
Use this method only if you need to enumerate consumer existing ids. When selecting a specific consumerId by its index, prefer using the dedicated #consumerIdByIdx method instead, which is optimised for this use case.
- abstract def queueSize(consumerId: Long): Int
Approximate number of buffered elements for a consumer.
Approximate number of buffered elements for a consumer. Larger value than other consumers could be an indication of that the consumer is slow.
Note that this is a moving target since the elements are consumed concurrently.
- abstract def size: Int
Number of attached consumers.