TopicNames¶
- class lsst.ts.salkafka.TopicNames(partitions: int, add_ackcmd: bool = False, commands: Sequence[str] = (), events: Sequence[str] = (), telemetry: Sequence[str] = ())¶
Bases:
object
A collection of topic names.
Topic names must omit the
command_
andlogevent_
prefix. For example specify “start” instead of “command_start”, and “summaryState” instead of “logevent_summaryState”.- Parameters:
- partitions
int
The desired number of Kafka partitions for these topics.
- add_ackcmd
bool
, optional Add
ackcmd
topic to the producer?- commands
list
ofstr
, optional Commands to add to the producer, with no prefix, e.g. “enable”. Converted to a sorted list.
- events
list
ofstr
, optional Events to add to the producer, with no prefix, e.g. “summaryState”. Converted to a sorted list.
- telemetry
list
ofstr
, optional Telemtry topics to add to the producer. Converted to a sorted list.
- partitions
Attributes Summary
Attributes Documentation