Class CreatePartitionsOptions
java.lang.Object
org.apache.kafka.clients.admin.AbstractOptions<CreatePartitionsOptions>
org.apache.kafka.clients.admin.CreatePartitionsOptions
Options for
Admin.createPartitions(Map).Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionretryOnQuotaViolation(boolean retryOnQuotaViolation) Set to true if quota violation should be automatically retried.booleanReturns true if quota violation should be automatically retried.booleanReturn true if the request should be validated without creating new partitions.validateOnly(boolean validateOnly) Set to true if the request should be validated without creating new partitions.Methods inherited from class org.apache.kafka.clients.admin.AbstractOptions
timeoutMs, timeoutMs
Constructor Details
CreatePartitionsOptions
public CreatePartitionsOptions()
Method Details
validateOnly
public boolean validateOnly()Return true if the request should be validated without creating new partitions.validateOnly
Set to true if the request should be validated without creating new partitions.retryOnQuotaViolation
Set to true if quota violation should be automatically retried.shouldRetryOnQuotaViolation
public boolean shouldRetryOnQuotaViolation()Returns true if quota violation should be automatically retried.