@InterfaceStability.Evolving public class CreateTopicsOptions extends Object
AdminClient.createTopics(Collection)
.
The API of this class is evolving, see AdminClient
for details.Constructor and Description |
---|
CreateTopicsOptions() |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldValidateOnly()
Return true if the request should be validated without creating the topic.
|
Integer |
timeoutMs()
The request timeout in milliseconds for this operation or
null if the default request timeout for the
AdminClient should be used. |
CreateTopicsOptions |
timeoutMs(Integer timeoutMs)
Set the request timeout in milliseconds for this operation or
null if the default request timeout for the
AdminClient should be used. |
CreateTopicsOptions |
validateOnly(boolean validateOnly)
Set to true if the request should be validated without creating the topic.
|
public CreateTopicsOptions timeoutMs(Integer timeoutMs)
null
if the default request timeout for the
AdminClient should be used.public Integer timeoutMs()
null
if the default request timeout for the
AdminClient should be used.public CreateTopicsOptions validateOnly(boolean validateOnly)
public boolean shouldValidateOnly()