public static class LicenseTopicAdmin.NewTopicBuilder extends Object
NewTopic instances.| Modifier and Type | Method and Description |
|---|---|
org.apache.kafka.clients.admin.NewTopic |
build()
Build the
NewTopic representation. |
LicenseTopicAdmin.NewTopicBuilder |
compacted()
Specify that the topic should be compacted.
|
LicenseTopicAdmin.NewTopicBuilder |
config(Map<String,Object> configs)
Specify the configuration properties for the topic, overwriting any previously-set properties.
|
LicenseTopicAdmin.NewTopicBuilder |
defaultPartitions()
Specify the topic's number of partition should be the broker configuration for
num.partitions. |
LicenseTopicAdmin.NewTopicBuilder |
defaultReplicationFactor()
Specify the replication factor for the topic should be the broker configurations for
default.replication.factor. |
LicenseTopicAdmin.NewTopicBuilder |
minInSyncReplicas(short minInSyncReplicas)
Specify the minimum number of in-sync replicas required for this topic.
|
LicenseTopicAdmin.NewTopicBuilder |
partitions(int numPartitions)
Specify the desired number of partitions for the topic.
|
LicenseTopicAdmin.NewTopicBuilder |
replicationFactor(short replicationFactor)
Specify the desired replication factor for the topic.
|
public LicenseTopicAdmin.NewTopicBuilder partitions(int numPartitions)
numPartitions - the desired number of partitions; must be positive, or -1 to
signify using the broker's defaultpublic LicenseTopicAdmin.NewTopicBuilder defaultPartitions()
num.partitions.public LicenseTopicAdmin.NewTopicBuilder replicationFactor(short replicationFactor)
replicationFactor - the desired replication factor; must be positive, or -1 to
signify using the broker's defaultpublic LicenseTopicAdmin.NewTopicBuilder defaultReplicationFactor()
default.replication.factor.public LicenseTopicAdmin.NewTopicBuilder compacted()
public LicenseTopicAdmin.NewTopicBuilder minInSyncReplicas(short minInSyncReplicas)
minInSyncReplicas - the minimum number of in-sync replicas allowed for the topic; must be positivepublic LicenseTopicAdmin.NewTopicBuilder config(Map<String,Object> configs)
configs - the desired topic configuration properties, or null if all existing properties should be clearedpublic org.apache.kafka.clients.admin.NewTopic build()
NewTopic representation.