public static class AlterConsumerSettings.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AlterConsumerSettings.Builder |
addAlterAttribute(String name,
String value)
Add consumer attribute to alter.
|
AlterConsumerSettings.Builder |
addDropAttribute(String name)
Add consumer attribute to drop.
|
AlterConsumerSettings |
build() |
AlterConsumerSettings.Builder |
setAlterAttributes(Map<String,String> attributes)
Set consumer attributes to alter.
|
AlterConsumerSettings.Builder |
setDropAttributes(Set<String> attributes)
Set consumer attributes to drop.
|
AlterConsumerSettings.Builder |
setImportant(boolean important) |
AlterConsumerSettings.Builder |
setName(String name) |
AlterConsumerSettings.Builder |
setReadFrom(Instant readFrom) |
AlterConsumerSettings.Builder |
setSupportedCodecs(SupportedCodecs supportedCodecs) |
public AlterConsumerSettings.Builder setName(@Nonnull String name)
name - Consumer namepublic AlterConsumerSettings.Builder setImportant(boolean important)
important - Flag that this consumer is important. Consumer may be marked as 'important'.
It means messages for this consumer will never expire due to retention. User should take
care that such consumer never stalls, to prevent running out of disk space.public AlterConsumerSettings.Builder setReadFrom(Instant readFrom)
readFrom - Time to read from. All messages with smaller server written_at timestamp will be skipped.public AlterConsumerSettings.Builder setSupportedCodecs(SupportedCodecs supportedCodecs)
supportedCodecs - Codecs supported by this consumer.
Should contain all codecs, supported by its Topicpublic AlterConsumerSettings.Builder addAlterAttribute(@Nonnull String name, @Nonnull String value)
name - Attribute namevalue - Attribute valuepublic AlterConsumerSettings.Builder setAlterAttributes(Map<String,String> attributes)
attributes - Consumer attributes to alter.public AlterConsumerSettings.Builder addDropAttribute(@Nonnull String name)
name - Attribute namepublic AlterConsumerSettings.Builder setDropAttributes(Set<String> attributes)
attributes - Consumer attributespublic AlterConsumerSettings build()
Copyright © 2024. All rights reserved.