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.
Inheritance
System.Object
TopicSpecification
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Confluent.Kafka.Admin
Assembly: cs.temp.dll.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 |
---|---|
System.Collections.Generic.Dictionary<System.String, System.String> |
Name
The name of the topic to be created (required).
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.Int32 |
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 |
---|---|
System.Collections.Generic.Dictionary<System.Int32, System.Collections.Generic.List<System.Int32>> |
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 |
---|---|
System.Int16 |