@InterfaceStability.Evolving public class CreatePartitionsOptions extends AbstractOptions<CreatePartitionsOptions>
Admin.createPartitions(Map). The API of this class is evolving, see Admin for details.| Constructor and Description |
|---|
CreatePartitionsOptions() |
| Modifier and Type | Method and Description |
|---|---|
CreatePartitionsOptions | retryOnQuotaViolation(boolean retryOnQuotaViolation)Set to true if quota violation should be automatically retried. |
boolean | shouldRetryOnQuotaViolation()Returns true if quota violation should be automatically retried. |
boolean | validateOnly()Return true if the request should be validated without creating new partitions. |
CreatePartitionsOptions | validateOnly(boolean validateOnly)Set to true if the request should be validated without creating new partitions. |
timeoutMs, timeoutMspublic boolean validateOnly()
public CreatePartitionsOptions validateOnly(boolean validateOnly)
public CreatePartitionsOptions retryOnQuotaViolation(boolean retryOnQuotaViolation)
public boolean shouldRetryOnQuotaViolation()