KafkaSettings¶
- class oci.streaming.models.KafkaSettings(**kwargs)¶
Bases:
objectSettings for the Kafka compatibility layer.
Methods:
__init__(**kwargs)Initializes a new KafkaSettings object with values from keyword arguments.
Attributes:
Gets the auto_create_topics_enable of this KafkaSettings.
Gets the bootstrap_servers of this KafkaSettings.
Gets the log_retention_hours of this KafkaSettings.
Gets the num_partitions of this KafkaSettings.
- __init__(**kwargs)¶
Initializes a new KafkaSettings object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
bootstrap_servers (str) – The value to assign to the bootstrap_servers property of this KafkaSettings.
auto_create_topics_enable (bool) – The value to assign to the auto_create_topics_enable property of this KafkaSettings.
log_retention_hours (int) – The value to assign to the log_retention_hours property of this KafkaSettings.
num_partitions (int) – The value to assign to the num_partitions property of this KafkaSettings.
- property auto_create_topics_enable¶
Gets the auto_create_topics_enable of this KafkaSettings. Enable auto creation of topic on the server.
- Returns
The auto_create_topics_enable of this KafkaSettings.
- Return type
bool
- property bootstrap_servers¶
Gets the bootstrap_servers of this KafkaSettings. Bootstrap servers.
- Returns
The bootstrap_servers of this KafkaSettings.
- Return type
str
- property log_retention_hours¶
Gets the log_retention_hours of this KafkaSettings. The number of hours to keep a log file before deleting it (in hours).
- Returns
The log_retention_hours of this KafkaSettings.
- Return type
int
- property num_partitions¶
Gets the num_partitions of this KafkaSettings. The default number of log partitions per topic.
- Returns
The num_partitions of this KafkaSettings.
- Return type
int