yr.ProducerConfig#
- class yr.ProducerConfig(delay_flush_time: int = 5, page_size: int = 1048576, max_stream_size: int = 1073741824, auto_clean_up: bool = False, encrypt_stream: bool = False, retain_for_num_consumers: int = 0, reserve_size: int = 0, extend_config: ~typing.Dict[str, str] = <factory>)[source]#
Bases:
objectThe configuration class created by the producer.
Attributes
Specifies whether the stream enables the auto-cleanup feature.
After Send, Flush will be triggered after a delay up to the specified duration.
Specifies whether content encryption is enabled for the stream.
Specifies the maximum shared memory size that a stream can use on a worker, in bytes (B).
Represents the buffer page size for the producer, in bytes (B).
Represents the reserved memory size in bytes (B).
The data sent by the producer will be retained until received by the Nth consumer.
Extended configuration stored as a dictionary, allowing users to customize configuration items.
Methods