io.strimzi.api.kafka.model.mirrormaker.KafkaMirrorMakerProducerSpec Maven / Gradle / Ivy
The newest version!
/*
* Copyright Strimzi authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.strimzi.api.kafka.model.mirrormaker;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.strimzi.api.kafka.model.common.Constants;
import io.strimzi.crdgenerator.annotations.Description;
import io.strimzi.crdgenerator.annotations.DescriptionFile;
import io.sundr.builder.annotations.Buildable;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import java.util.Map;
@DescriptionFile
@Buildable(
editableEnabled = false,
builderPackage = Constants.FABRIC8_KUBERNETES_API
)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({ "bootstrapServers", "abortOnSendFailure", "authentication", "config", "tls"})
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class KafkaMirrorMakerProducerSpec extends KafkaMirrorMakerClientSpec {
private Boolean abortOnSendFailure;
public static final String FORBIDDEN_PREFIXES = "ssl., bootstrap.servers, sasl., security., interceptor.classes";
public static final String FORBIDDEN_PREFIX_EXCEPTIONS = "ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol, ssl.enabled.protocols";
@Description("Flag to set the MirrorMaker to exit on a failed send. Default value is `true`.")
@JsonInclude(JsonInclude.Include.NON_NULL)
public Boolean getAbortOnSendFailure() {
return abortOnSendFailure;
}
public void setAbortOnSendFailure(Boolean abortOnSendFailure) {
this.abortOnSendFailure = abortOnSendFailure;
}
@Override
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Description("The MirrorMaker producer config. Properties with the following prefixes cannot be set: " + FORBIDDEN_PREFIXES + " (with the exception of: " + FORBIDDEN_PREFIX_EXCEPTIONS + ").")
public Map getConfig() {
return config;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy