Class TopicSpecification
Specification of a new topic to be created via the CreateTopics method. This class is used for the same purpose as NewTopic in the Java API.
Inherited Members
Namespace: Confluent.Kafka.Admin
Assembly: Confluent.Kafka.dll
Syntax
public class TopicSpecification
Properties
Configs
The configuration to use to create the new topic.
Declaration
public Dictionary<string, string> Configs { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |
Name
The name of the topic to be created (required).
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
NumPartitions
The number of partitions for the new topic or -1 (the default) if a replica assignment is specified.
Declaration
public int NumPartitions { get; set; }
Property Value
Type | Description |
---|---|
int |
ReplicasAssignments
A map from partition id to replica ids (i.e., static broker ids) or null if the number of partitions and replication factor are specified instead.
Declaration
public Dictionary<int, List<int>> ReplicasAssignments { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<int, List<int>> |
ReplicationFactor
The replication factor for the new topic or -1 (the default) if a replica assignment is specified instead.
Declaration
public short ReplicationFactor { get; set; }
Property Value
Type | Description |
---|---|
short |