Factory
Used to set configuration options for Kafka as an XTDB Transaction Log.
For more info on setting up the necessary infrastructure to be able to use Kafka as an XTDB Transaction Log, see the section on infrastructure within our Kafka Module Reference.
Example usage, as part of a node config:
Xtdb.openNode {
txLog = KafkaLogFactory(
bootstrapServers = "localhost:9092",
topicName = "xtdb_topic",
autoCreateTopic = true,
replicationFactor = 1,
pollDuration = Duration.ofSeconds(1)
),
...
}
Properties
Whether to automatically create the topic, if it does not already exist.
A comma-separated list of host:port pairs to use for establishing the initial connection to the Kafka cluster.
The maximum amount of time to block waiting for records to be returned by the Kafka consumer.
Path to a Java properties file containing Kafka connection properties, supplied directly to the Kafka client.
A map of Kafka connection properties, supplied directly to the Kafka client.
The replication factor of the transaction log topic (if it is automatically created by XTDB).
A map of topic configuration options to use when creating the transaction log topic (if it is automatically created by XTDB).
Name of the Kafka topic to use for the transaction log.